'use client'

import { useState, useCallback } from 'react'
import { Language } from '@/lib/types'
import PitchDeck from '@/components/PitchDeck'

export default function Home() {
  const [lang, setLang] = useState<Language>('de')

  const toggleLanguage = useCallback(() => {
    setLang(prev => prev === 'de' ? 'en' : 'de')
  }, [])

  return <PitchDeck lang={lang} onToggleLanguage={toggleLanguage} />
}
