import { createApp } from 'vue';
import '@/style.css';
import App from '@/App.vue';

import '@/UI-kit/assets/scss/index.scss';
import { createPinia } from 'pinia';
import { UIKitInstall } from '@/UI-kit/plugins';
import { CustomWindow } from '../vite-env';

const pinia = createPinia();

const app = createApp(App)
    .use(pinia)
    .use(UIKitInstall, { baseURL: 'https://dev.xn--80afocqlnef9czf.xn--p1ai' });

window.$app = app.config.globalProperties as CustomWindow;

app.mount('#app');
