<script lang="ts">
  import type { ModalData } from "../stores/modal";
  import modalStore from "../stores/modal";

  export let name: ModalData["name"] = "none";
</script>

{#if $modalStore.name === name}
  <slot></slot>
{/if}