'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 MinimizeProps = IconProps; const animations = { default: { path1: { initial: { x: 0, y: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { x: 2, y: 2, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path2: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: 2, x: -2, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path3: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: -2, x: 2, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, path4: { initial: { y: 0, x: 0, transition: { duration: 0.3, ease: 'easeInOut' }, }, animate: { y: -2, x: -2, transition: { duration: 0.3, ease: 'easeInOut' }, }, }, } satisfies Record, 'default-loop': { path1: { initial: { x: 0, y: 0, }, animate: { x: [0, 2, 0], y: [0, 2, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path2: { initial: { y: 0, x: 0, }, animate: { y: [0, 2, 0], x: [0, -2, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path3: { initial: { y: 0, x: 0, }, animate: { y: [0, -2, 0], x: [0, 2, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, path4: { initial: { y: 0, x: 0, }, animate: { y: [0, -2, 0], x: [0, -2, 0], transition: { duration: 0.6, ease: 'easeInOut' }, }, }, } satisfies Record, } as const; function IconComponent({ size, ...props }: MinimizeProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function Minimize(props: MinimizeProps) { return ; } export { animations, Minimize, Minimize as MinimizeIcon, type MinimizeProps, type MinimizeProps as MinimizeIconProps, };