<template>
  <GiPageLayout>
    <template #left>
      <PerformanceMenu @select="handleSelectMenu" />
    </template>
    <router-view />
  </GiPageLayout>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
import PerformanceMenu from './components/PerformanceMenu.vue'

const router = useRouter()

const handleSelectMenu = (key: string) => {
  router.push(`/performance/${key}`)
}
</script>
