import { motion } from 'framer-motion'; interface Props { text: string; className?: string; delay?: number; stagger?: number; as?: 'span' | 'h1' | 'h2' | 'h3' | 'p' | 'div'; } export default function SplitReveal({ text, className = '', delay = 0, stagger = 0.035, as = 'span', }: Props) { const chars = Array.from(text); const MotionTag = motion[as] as typeof motion.span; return ( {chars.map((ch, i) => ( ))} ); }