<script>
  import { Circle2 } from 'svelte-loading-spinners';

  export let isLoading = false;
</script>

{#if isLoading}
  <div class="load-spinner">
    <div class="position-absolute top-50 start-50">
      <Circle2 colorOuter="#e658ea" colorInner="#eaac3f" />
    </div>
  </div>
{/if}

<style>
  .load-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 50;
  }
</style>
