<template>
  <div class="app-container">
    <header v-if="route.name !== 'home'" class="app-header">
      <BackLink />
      <div id="header-actions"></div>
    </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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--content-padding);
  pointer-events: none;
}

.app-header :deep(*) {
  pointer-events: auto;
}
</style>
