'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 ArrowDownProps = IconProps; const animations = { default: { group: { initial: { y: 0, transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { y: '25%', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, path1: {}, path2: {}, } satisfies Record, 'default-loop': { group: { initial: { y: 0, }, animate: { y: [0, '25%', 0], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, path1: {}, path2: {}, } satisfies Record, pointing: { group: {}, path1: { initial: { d: 'M12 5v14', transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { d: 'M12 5v10', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, path2: { initial: { d: 'm19 12-7 7-7-7', transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { d: 'm19 8.5-7 7-7-7', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, } satisfies Record, 'pointing-loop': { group: {}, path1: { initial: { d: 'M12 5v14', }, animate: { d: ['M12 5v14', 'M12 5v10', 'M12 5v14'], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, path2: { initial: { d: 'm19 12-7 7-7-7', }, animate: { d: ['m19 12-7 7-7-7', 'm19 8.5-7 7-7-7', 'm19 12-7 7-7-7'], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, } satisfies Record, out: { group: { initial: { y: 0, }, animate: { y: [0, '150%', '-150%', 0], transition: { default: { ease: 'easeInOut', duration: 0.8 }, y: { ease: 'easeInOut', duration: 0.8, times: [0, 0.5, 0.5, 1], }, }, }, }, path1: {}, path2: {}, } satisfies Record, } as const; function IconComponent({ size, ...props }: ArrowDownProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function ArrowDown(props: ArrowDownProps) { return ; } export { animations, ArrowDown, ArrowDown as ArrowDownIcon, type ArrowDownProps, type ArrowDownProps as ArrowDownIconProps, };