"use client"; // Adapted from Magic UI (MIT). See THIRD_PARTY_NOTICES.md. import { type ComponentProps, type CSSProperties } from "react"; export interface TextAnimateProps extends Omit< ComponentProps<"span">, "children" > { children: string; by?: "word" | "character"; } export function TextAnimate({ children, by = "word", className = "", ...props }: TextAnimateProps) { const parts = by === "character" ? Array.from(children) : children.split(/(\s+)/); return ( {children} ); }