<template>
  <div class="app-container">
    <header v-if="route.name !== 'home'" class="app-header">
      <BackLink />
    </header>
    <RouterView />
  </div>
</template>

<script setup lang="ts">
import { RouterView, useRoute } from 'vue-router'
import BackLink from '@/components/BackLink.vue'

const route = useRoute()
</script>

<style scoped>
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: var(--spacing-lg);
}
</style>
