<script lang="ts">
  import Name from '../profile/Name.svelte';

  export let hasPreview: boolean = true;
</script>

{#if hasPreview}
  <slot />
{:else}
  <div class="w-full">
    <Name identifier={'Loading widget...'} secondaryIdentifier={'Loading...'} placeholder={true} />
  </div>
{/if}
