<script setup lang="ts">
import { cn } from '@/lib/utils';

defineOptions({ inheritAttrs: false });
</script>

<template>
  <ul
    v-bind="$attrs"
    data-slot="sidebar-menu-sub"
    data-sidebar="menu-sub"
    :class="
      cn(
        'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l pl-4 pr-4 py-0.5',
        'group-data-[collapsible=icon]:hidden',
        $attrs.class ?? '',
      )
    "
  >
    <slot />
  </ul>
</template>
