Kraft102's picture
fix: sql.js Docker/Alpine compatibility layer for PatternMemory and FailureMemory
5a81b95
import { cn } from '@/lib/utils';
interface GlitchTextProps {
text: string;
className?: string;
as?: 'h1' | 'h2' | 'h3' | 'p' | 'span';
}
const GlitchText = ({ text, className, as: Component = 'span' }: GlitchTextProps) => {
return (
<Component
className={cn("glitch", className)}
data-text={text}
>
{text}
</Component>
);
};
export default GlitchText;