<script setup>
import { onMounted } from 'vue';
import useLoader    from '@Stores/Loader';

import Layout  from '@Holos/Layout/App.vue';
import Link    from '@Holos/Skeleton/Sidebar/Link.vue';
import Section from '@Holos/Skeleton/Sidebar/Section.vue';

/** Definidores */
const loader = useLoader()

/** Propiedades */
defineProps({
    title: String,
});

/** Ciclos */
onMounted(() => {
    loader.boot()
})

</script>

<template>
    <Layout
        :title="title"
    >
        <template #leftSidebar>
            <Section name="Principal">
                <Link
                    icon="monitoring"
                    name="Dashboard" 
                    to="coordinator.dashboard.index"
                />
            </Section>
            <Section
                :name="$t('admin.title')"
            >
            </Section>
        </template>
        <!-- Contenido -->
        <RouterView />
        <!-- Fin contenido -->
    </Layout>
</template>
