feat: add suspend state and make all buttons related to state working

This commit is contained in:
2024-09-11 17:32:57 +02:00
parent 4f8e6aa928
commit f718d0b18d
7 changed files with 36 additions and 17 deletions

View File

@@ -22,7 +22,11 @@ export const Boot = () => {
const timeout = setTimeout(
() => setLine(line + 1),
Math.random() * 750 + 200,
line === 0
? 3500
: line === LINES.length - 1
? 1200
: Math.random() * 750 + 200,
);
return () => clearTimeout(timeout);
}, [setState, line]);