'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 ArrowRightProps = IconProps; const animations = { default: { group: { initial: { x: 0, transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { x: '25%', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, path1: {}, path2: {}, } satisfies Record, 'default-loop': { group: { initial: { x: 0, }, animate: { x: [0, '25%', 0], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, path1: {}, path2: {}, } satisfies Record, pointing: { group: {}, path1: { initial: { d: 'M5 12h14', transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { d: 'M5 12h10', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, path2: { initial: { d: 'm12 5 7 7-7 7', transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { d: 'm8 5 7 7-7 7', transition: { ease: 'easeInOut', duration: 0.3 }, }, }, } satisfies Record, 'pointing-loop': { group: {}, path1: { initial: { d: 'M5 12h14', }, animate: { d: ['M5 12h14', 'M5 12h10', 'M5 12h14'], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, path2: { initial: { d: 'm12 5 7 7-7 7', }, animate: { d: ['m12 5 7 7-7 7', 'm8 5 7 7-7 7', 'm12 5 7 7-7 7'], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, } satisfies Record, out: { group: { initial: { x: 0, }, animate: { x: [0, '150%', '-150%', 0], transition: { default: { ease: 'easeInOut', duration: 0.8 }, x: { ease: 'easeInOut', duration: 0.8, times: [0, 0.5, 0.5, 1], }, }, }, }, path1: {}, path2: {}, } satisfies Record, } as const; function IconComponent({ size, ...props }: ArrowRightProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function ArrowRight(props: ArrowRightProps) { return ; } export { animations, ArrowRight, ArrowRight as ArrowRightIcon, type ArrowRightProps, type ArrowRightProps as ArrowRightIconProps, };