<script setup>
import { Primitive } from "reka-ui";
import { cn } from "../../../utils/cn";
const props = defineProps({
  asChild: { type: Boolean, required: false },
  as: { type: null, required: false },
  class: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true }
});
</script>

<template>
  <Primitive
    data-slot="sidebar-group-label"
    data-sidebar="group-label"
    :as="as"
    :as-child="asChild"
    :class="cn(
  'text-zinc-700/70 flex gap-x-2 h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear [&>svg]:size-4 [&>svg]:shrink-0',
  'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0',
  props.class
)"
  >
    <slot />
  </Primitive>
</template>
