<script>
import theme from "#build/b24ui/page-list";
</script>

<script setup>
import { computed } from "vue";
import { Primitive } from "reka-ui";
import { useAppConfig } from "#imports";
import { tv } from "../utils/tv";
const props = defineProps({
  as: { type: null, required: false },
  divide: { type: Boolean, required: false, default: false },
  class: { type: null, required: false }
});
defineSlots();
const appConfig = useAppConfig();
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.pageList || {} }));
</script>

<template>
  <Primitive :as="as" role="list" :class="b24ui({ class: props.class, divide: props.divide })">
    <slot />
  </Primitive>
</template>
