<template>
  <ReconciliationJar v-if="authStore.isAdmin" />
</template>

<script >
  import { useAuthStore } from '@/stores/auth';

  export default {
    setup() {
      const authStore = useAuthStore();
      return { authStore };
    },
    mounted() {
      if (!this.authStore.isAdmin) {
        this.$router.push('/');
      }
    },
  }
</script>
