Estoy usando resorte de reacción para animar rutas svg, alternando strokeDashArray. Aquí he escrito esto en el padre
const dashArrayAnimation = useSpring({
loop: {
reverse: true,
},
from: { strokeDasharray: toggle ? 0 : 5 },
to: { strokeDasharray: toggle ? 0 : 8 },
config: { duration: 500 },
});
y pasando esta const a los componentes secundarios, en los componentes secundarios, estoy tratando de definir su tipo de accesorio
interface Props {
type: Metric | undefined;
animationTracker: {
cardPositionName: string;
mouseOver: boolean;
trialType: number;
};
toggle: boolean;
setToggle: React.Dispatch<React.SetStateAction<boolean>>;
dashArrayAnimation: any;
}
¿Cuál será su tipo de apoyo?