<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-action"
    data-sidebar="group-action"
    :as="as"
    :as-child="asChild"
    :class="cn(
  'text-zinc-700 hover:bg-zinc-100 hover:text-zinc-900 absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform [&>svg]:size-4 [&>svg]:shrink-0',
  'after:absolute after:-inset-2 md:after:hidden',
  'group-data-[collapsible=icon]:hidden',
  props.class
)"
  >
    <slot />
  </Primitive>
</template>
