'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 GaugeProps = IconProps; const animations = { default: { path1: { initial: { rotate: 0, transition: { ease: 'easeInOut', duration: 0.3 }, }, animate: { transformOrigin: 'bottom left', rotate: 70, transition: { ease: 'easeInOut', duration: 0.3 }, }, }, path2: {}, } satisfies Record, 'default-loop': { path1: { initial: { rotate: 0, transition: { ease: 'easeInOut', duration: 0.6 }, }, animate: { transformOrigin: 'bottom left', rotate: [0, 70, 0], transition: { ease: 'easeInOut', duration: 0.6 }, }, }, path2: {}, } satisfies Record, } as const; function IconComponent({ size, ...props }: GaugeProps) { const { controls } = useAnimateIconContext(); const variants = getVariants(animations); return ( ); } function Gauge(props: GaugeProps) { return ; } export { animations, Gauge, Gauge as GaugeIcon, type GaugeProps, type GaugeProps as GaugeIconProps, };