diff --git a/app/page.js b/app/page.js index 783ac0b..e9d8f5e 100644 --- a/app/page.js +++ b/app/page.js @@ -33,6 +33,7 @@ export default function Home() { const [copied, setCopied] = useState(false); const [loading, setLoading] = useState(false); const [error, setError] = useState(initError); + const [oneline, setOneline] = useState(false); const [inputKey, setInputKey] = useState(""); const [outputKey, setOutputKey] = useState(null); @@ -112,15 +113,30 @@ export default function Home() { <> -
+
               
- +
+ + + + setOneline(prevState => !prevState)} + /> + +
-
-
-                    {outputKey}
-                  
-
+ { oneline ? ( + + ) : ( +