'use client'

import { motion } from 'framer-motion'
import { ReactNode } from 'react'

interface GradientTextProps {
  children: ReactNode
  className?: string
  delay?: number
}

export default function GradientText({ children, className = '', delay = 0 }: GradientTextProps) {
  return (
    <motion.span
      initial={{ opacity: 0, y: 10 }}
      animate={{ opacity: 1, y: 0 }}
      transition={{ duration: 0.6, delay }}
      className={`
        bg-gradient-to-r from-indigo-400 via-purple-400 to-blue-400
        bg-clip-text text-transparent
        ${className}
      `}
    >
      {children}
    </motion.span>
  )
}
