'use client'; import { useState, useEffect } from 'react'; import { getTranslations, type Language } from '@/lib/languages'; export default function LangPage({ params }: { params: { lang: string } }) { const [glitchActive, setGlitchActive] = useState(false); const [isLoaded, setIsLoaded] = useState(false); const lang = params.lang as Language; const t = getTranslations(lang); useEffect(() => { setIsLoaded(true); const glitchInterval = setInterval(() => { setGlitchActive(true); setTimeout(() => setGlitchActive(false), 200); }, 3000); return () => clearInterval(glitchInterval); }, []); return (
{t.hero.description}