<script lang="ts">
  import { ActionArray, useActions } from "$lib/hooks/use-actions";
  import { get_current_component } from "svelte/internal";
  import { forwardEventsBuilder } from "../forwardEventsBuilder";

  export let use: ActionArray = [];
  export let el: HTMLElement | null = null;
  const forwardEvents = forwardEventsBuilder(get_current_component());
</script>

<bdi bind:this={el} use:useActions={use} use:forwardEvents {...$$restProps}>
  <slot />
</bdi>
