Refactor NavBar

This commit is contained in:
2024-12-05 13:21:17 +01:00
parent 387f3f658d
commit 0a5e6cb249
4 changed files with 36 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
<script lang="ts" setup>
defineProps<{
championName?: string
championLanes?: Array<LaneData>
}>()
const emit = defineEmits<{
stateChange: [state: string, lane: number]
}>()
</script>
<template>
<NavSideBar :champion-name="championName"
:champion-lanes="championLanes"
@state-change="(s, l) => emit('stateChange', s, l)"/>
<NavBottomBar :champion-name="championName"
:champion-lanes="championLanes"
@state-change="(s, l) => emit('stateChange', s, l)"/>
</template>