'use client'; import * as React from 'react'; import { motion, type Transition } from 'motion/react'; import { cn } from '@workspace/ui/lib/utils'; type GradientTextProps = React.ComponentProps<'span'> & { text: string; gradient?: string; neon?: boolean; transition?: Transition; }; function GradientText({ text, className, gradient = 'linear-gradient(90deg, #3b82f6 0%, #a855f7 20%, #ec4899 50%, #a855f7 80%, #3b82f6 100%)', neon = false, transition = { duration: 50, repeat: Infinity, ease: 'linear' }, ...props }: GradientTextProps) { const baseStyle: React.CSSProperties = { backgroundImage: gradient, }; return ( {text} {neon && ( {text} )} ); } export { GradientText, type GradientTextProps };