'use client'; import * as React from 'react'; import { motion, type Variants } from 'motion/react'; import { getVariants, useAnimateIconContext, IconWrapper, type IconProps, } from '@/registry/icons/icon'; type ShrinkProps = IconProps; const animations = { default: { path1: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: -1, x: -1, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path2: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: 1, x: -1, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path3: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: -1, x: 1, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path4: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: 1, x: 1, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, } satisfies Record, 'default-loop': { path1: { initial: { y: 0, x: 0, }, animate: { y: [0, -1, 0], x: [0, -1, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path2: { initial: { y: 0, x: 0, }, animate: { y: [0, 1, 0], x: [0, -1, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path3: { initial: { y: 0, x: 0, }, animate: { y: [0, -1, 0], x: [0, 1, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path4: { initial: { y: 0, x: 0, }, animate: { y: [0, 1, 0], x: [0, 1, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, } satisfies Record, } as const; function IconComponent({ size, ...props }: ShrinkProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function Shrink(props: ShrinkProps) { return ; } export { animations, Shrink, Shrink as ShrinkIcon, type ShrinkProps, type ShrinkProps as ShrinkIconProps, };