From 72c70fa825a63bfad125c7ae8dc4be0cc35ec85b Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Sun, 9 Mar 2025 21:36:05 +0100
Subject: add embed prop

---
 src/components/MorseGame.tsx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'src/components/MorseGame.tsx')

diff --git a/src/components/MorseGame.tsx b/src/components/MorseGame.tsx
index 5009044..0a3b902 100644
--- a/src/components/MorseGame.tsx
+++ b/src/components/MorseGame.tsx
@@ -12,9 +12,10 @@ declare global {
 
 interface MorseGameProps {
   onReset?: () => void;
+  embed?: boolean;
 }
 
-const MorseGame: React.FC<MorseGameProps> = () => {
+const MorseGame: React.FC<MorseGameProps> = ({ onReset, embed = false }) => {
   // Game variables
   const [score, setScore] = useState(0);
   const [totalPlayed, setTotalPlayed] = useState(0);
@@ -289,9 +290,11 @@ const MorseGame: React.FC<MorseGameProps> = () => {
           </div>
         </div>
 
-        <div className="keyboard-tip">
-          <p>Pro Tip: Use your keyboard to select options faster!</p>
-        </div>
+        {!embed && (
+          <div className="keyboard-tip">
+            <p>Pro Tip: Use your keyboard to select options faster!</p>
+          </div>
+        )}
       </div>
     </div>
   );
-- 
cgit v1.3.1

