<script setup lang="ts">
import { ref } from 'vue';
import { useAdminTableRowActionsProvider } from '../composables/useAdminTableRowActionsLayout';

const wrapRef = ref<HTMLElement | null>(null);
const useMenu = useAdminTableRowActionsProvider(wrapRef);
</script>

<template>
  <div
    ref="wrapRef"
    class="table-wrap"
    :class="{ 'is-compact-row-actions': useMenu }"
  >
    <slot />
  </div>
</template>
