<template>
  <v-row no-gutters class="fill-height" align="center" justify="center">
    <v-col cols="12" lg="6" md="6" sm="6" class="text-center text-subtitle-1">
      You must be a member of an organization to view this page. Please join or
      contact your administrator for access.
      <v-row no-gutters justify="center" class="mt-2">
        <v-btn
          @click="goToAccount"
          rounded="xl"
          variant="tonal"
          class="text-none text-subtitle-2"
        >
          Go to Account Page
        </v-btn>
      </v-row>
    </v-col>
  </v-row>
</template>

<script setup lang="ts">
definePageMeta({
  layout: "plain",
});

function goToAccount() {
  const { APP_ACCOUNT } = useRuntimeConfig().public;
  window.location.href = `${APP_ACCOUNT}/home`;
}
</script>
