<script>
import theme from "#build/b24ui/main";
</script>

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

<template>
  <Primitive :as="props.as" :class="b24ui({ class: [props.b24ui?.base, props.class] })">
    <slot />
  </Primitive>
</template>
