<script setup lang="ts">
import type { TooltipArrowProps } from "reka-ui"
import type { HTMLAttributes } from "vue"
import { reactiveOmit } from "@vueuse/core"
import { TooltipArrow } from "reka-ui"
import { cn } from "@/lib/utils"

export interface TooltipArrowComponentProps extends TooltipArrowProps {
  class?: HTMLAttributes["class"]
}

const props = defineProps<TooltipArrowComponentProps>()

const delegatedProps = reactiveOmit(props, "class")
</script>

<template>
  <TooltipArrow
    v-bind="delegatedProps"
    :class="cn('fill-popover', props.class)"
  />
</template>
