import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { useTranslation } from "@/hooks/useTranslation"; interface HowToPlayDialogProps { open: boolean; onOpenChange: (open: boolean) => void; } export const HowToPlayDialog = ({ open, onOpenChange }: HowToPlayDialogProps) => { const t = useTranslation(); return ( {t.welcome.howToPlay}

{t.howToPlay.setup.title}

{t.howToPlay.setup.description}

{t.howToPlay.goal.title}

{t.howToPlay.goal.description}

{t.howToPlay.rules.title}

    {t.howToPlay.rules.items.map((rule, index) => (
  • {rule}
  • ))}

{t.howToPlay.gameModes.title}

  • {t.howToPlay.gameModes.daily}
  • {t.howToPlay.gameModes.custom}
); };