<template>
  <UDashboardGroup>
    <UiSidebar class="min-w-60" />
    <UDashboardSearch />
    <UDashboardPanel>
      <template #header>
        <UDashboardNavbar :title="pageName ?? ''">
          <template #right>
            <UDashboardSearchButton />
            <UColorModeButton />
          </template>
        </UDashboardNavbar>
        <div class="flex flex-row content-center justify-between w-full" />
      </template>
      <template #body>
        <slot />
      </template>
    </UDashboardPanel>
  </UDashboardGroup>
</template>

<script setup lang="ts">
const { pageName } = usePageTitle();
</script>
