diff --git a/src/app/components/HowToPlay.tsx b/src/app/components/HowToPlay.tsx new file mode 100644 index 0000000..091b75d --- /dev/null +++ b/src/app/components/HowToPlay.tsx @@ -0,0 +1,35 @@ +import { useLanguage } from "@/LanguageContext"; +import { translations } from "@/translations"; +import React from "react"; + +interface HowToPlayProps { + open: boolean; + onClose: () => void; +} + +const HowToPlay: React.FC = ({ open, onClose }) => { + const { language } = useLanguage(); + const t = translations[language]; + if (!open) return null; + return ( +
+
e.stopPropagation()}> + +

{t.howToPlayTitle}

+
    +
  • {t.howToPlay1}
  • +
  • {t.howToPlay2}
  • +
  • {t.howToPlay3}
  • +
+
+
+ ); +}; + +export default HowToPlay;