<script setup lang="ts">
import type { NavigationMenuListProps } from 'reka-ui';
import { NavigationMenuList, useForwardProps } from 'reka-ui';
import { cn } from '@/lib/utils';

defineOptions({ inheritAttrs: false });

const props = defineProps<NavigationMenuListProps>();

const forwardedProps = useForwardProps(props);
</script>

<template>
  <NavigationMenuList
    data-slot="navigation-menu-list"
    v-bind="{ ...forwardedProps, ...$attrs }"
    :class="
      cn(
        'group flex flex-1 list-none items-center justify-center gap-1',
        $attrs.class ?? '',
      )
    "
  >
    <slot />
  </NavigationMenuList>
</template>
