<template>
    <nav class="sidebar">
        <slot></slot>
    </nav>
</template>

<script setup lang="ts">

</script>

<style>
.sidebar {
    padding: 1rem;
    background-color: var(--tile-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    height: 100%;
    min-width: 10rem;
}
.namespace, .resources {
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
     white-space: nowrap;
}
.resources.router-link-active, .namespace.router-link-active {
    background-color: var(--primary-color);
    color: white;
}
.divider {
    height: 1px;
    background-color: rgb(36, 36, 36);
}
.nav * {
    display: block;
    text-decoration: none;
}
.hide {
    visibility: hidden;
}
</style>