import { NextSeo } from 'next-seo' import Link from 'next/link' import { useRouter } from 'next/router' import { useEffect, useRef } from 'react' import Typed from 'typed.js' import { Button, ButtonProps, cn } from 'ui' import { CommandMenuTrigger } from 'ui-patterns/CommandMenu' import { questions } from 'shared-data' import DefaultLayout from '~/components/Layouts/Default' import SectionContainer from '~/components/Layouts/SectionContainer' import Panel from '~/components/Panel' import data from '~/data/support' import { Search, Command } from 'lucide-react' const Index = () => { const router = useRouter() const typerRef = useRef(null) useEffect(() => { const typed = new Typed(typerRef.current, { strings: questions, typeSpeed: 50, backDelay: 4000, showCursor: false, }) return () => { // Destroy Typed instance during cleanup to stop animation typed.destroy() } }, []) return ( <> {data.hero.h1} {data.hero.title} K {data.cards.map((card) => ( {card.title} {card.paragraph} {card.links.map((link) => ( {link.label} ))} ))} {data.banner.title} {data.banner.paragraph} {data.banner.links.map((link) => ( {link.label} ))} > ) } export default Index
{data.hero.title}
{card.paragraph}