<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>
    <nav>
      <div class="left">
        <RouterLink to="/tracker">Tracker</RouterLink>
        <RouterLink to="/dashboard">Dashboard</RouterLink>
        <RouterLink to="/about">About</RouterLink>
      </div>
      <div class="right">
        <RouterLink to="/profile">{{ username }}</RouterLink>
      </div>
    </nav>
  </header>

  <RouterView />
</template>

<script>
import AppStore from './stores/AppStore'

export default {
  data() {
    return {
      username: AppStore.data.user.username
    }
  },
  methods: {},
  async created() {}
}
</script>
