diff options
Diffstat (limited to 'web/src/lib/ui/BottomBar.svelte')
| -rw-r--r-- | web/src/lib/ui/BottomBar.svelte | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/web/src/lib/ui/BottomBar.svelte b/web/src/lib/ui/BottomBar.svelte new file mode 100644 index 0000000..b4161ca --- /dev/null +++ b/web/src/lib/ui/BottomBar.svelte @@ -0,0 +1,22 @@ +<!-- + The bottom bar (the reference `BottomBar`): the draw/next-round button + and the scenario level widget. +--> +<script lang="ts"> + import type { GameSession } from '$lib/state/session'; + import DrawButton from './DrawButton.svelte'; + import LevelWidget from './LevelWidget.svelte'; + + let { + session, + onOpenSetLevel + }: { + session: GameSession; + onOpenSetLevel: () => void; + } = $props(); +</script> + +<div class="bottombar"> + <DrawButton {session} /> + <LevelWidget {session} onOpenMenu={onOpenSetLevel} /> +</div> |
