<script>
  import modal from "../stores/modal";

  export let component;
  export let name;
</script>

{#if (name === $modal.name)}
  <svelte:component this={component} {...$modal.data} />
{/if}