<template>
  <a class="button is-link is-sr-only" href="#content">Accéder au contenu</a>
  <AdminHeader v-if="authStore.isLogged" id="nav" />
  <a class="button is-link is-sr-only" href="#nav">Accéder à la navigation</a>
  <div class="container" id="content">
    <slot />
  </div>
</template>

<script setup lang="ts">
import { useAuthStore } from "~/stores/authStore"

const authStore = useAuthStore()
useHead({
  titleTemplate: (pageTitle) =>
    (pageTitle ? `${pageTitle} | ` : "") + "Admin | Ciné-club ENS Ulm",
})
</script>

<style scoped lang="sass"></style>
