import "./styles/index.css";
import { createApp } from "vue";
import App from "./App.vue";
import { viewerPinia } from "./ui/stores/pinia";
import { useAuthStore } from "./ui/stores/authStore";

const root = document.querySelector<HTMLDivElement>("#app");

if (!root) {
  throw new Error("Missing #app root element");
}

createApp(App)
  .use(viewerPinia)
  .mount(root);

useAuthStore(viewerPinia).initialize();
