import { type MotionProps, motion } from "motion/react"; import { cn } from "@/lib/utils"; interface LineShadowTextProps extends Omit, keyof MotionProps>, MotionProps { shadowColor?: string; as?: React.ElementType; } export function LineShadowText({ children, shadowColor = "black", className, as: Component = "span", ...props }: LineShadowTextProps) { const MotionComponent = motion.create(Component); const content = typeof children === "string" ? children : null; if (!content) { throw new Error("LineShadowText only accepts string content"); } return ( {content} ); }