'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 StarProps = IconProps; const animations = { default: { group: { initial: { scale: 1, }, animate: { scale: [1, 0.9, 1.2, 1], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path: {}, } satisfies Record, fill: { group: { initial: { scale: 1, }, animate: { scale: [1, 0.9, 1.2, 1], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path: { initial: { fill: 'currentColor', fillOpacity: 0, }, animate: { fillOpacity: 1, transition: { delay: 0.2 }, }, }, } satisfies Record, } as const; function IconComponent({ size, ...props }: StarProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function Star(props: StarProps) { return ; } export { animations, Star, Star as StarIcon, type StarProps, type StarProps as StarIconProps, };