<script setup lang="ts">
import { storeToRefs } from "pinia";
import {
  AApp,
  AMain,
  ASnackbars,
  RouterViewTransition,
  useIntercom,
  useNotifications,
  useRequestInterceptor,
  useInternalTranslations,
} from "@actindo/core-ui";

const { notifications } = storeToRefs(useNotifications());

useIntercom().init();
// useIntercom().init(mainAppRoutes); // send sub navigation routes (main left sidebar) to core app

useInternalTranslations();

useRequestInterceptor();
</script>

<template>
  <AApp class="app-background">
    <AMain>
      <RouterViewTransition keep-alive />
    </AMain>
    <ASnackbars v-model="notifications" :timeout="8000" />
  </AApp>
</template>
