"use client"; import { cn } from "@/lib/utils"; import { type HTMLAttributes, useEffect, useState } from "react"; interface SonOfAGlitchProps extends HTMLAttributes { text: string; textClassName?: string; glitchClassName?: string; showGlitch?: boolean; } export const SonOfAGlitch = ({ text, className, textClassName, glitchClassName, showGlitch = true, }: SonOfAGlitchProps) => { const [isGlitching, setIsGlitching] = useState(showGlitch); useEffect(() => { setIsGlitching(showGlitch); }, [showGlitch]); return (

{text}

); };