"use client"; import * as React from "react"; import { type HTMLMotionProps, motion, type Transition } from "motion/react"; import { cn } from "@/lib/utils"; type ShimmeringTextProps = { text: string; duration?: number; transition?: Transition; wave?: boolean; color?: string; shimmeringColor?: string; } & Omit, "children">; function ShimmeringText({ text, duration = 1, transition, wave = false, className, color = "var(--color-neutral-500)", shimmeringColor = "var(--color-neutral-300)", ...props }: ShimmeringTextProps) { return ( {text?.split("")?.map((char, i) => ( {char} ))} ); } export { ShimmeringText, type ShimmeringTextProps };