<script>
  import { onMount } from "svelte";
  let showError = false;
  onMount(() => {
    let timer = setTimeout(() => {
      showError = true;
    }, 5000);
    return () => {
      clearTimeout(timer);
    };
  });
</script>

<div class="w-full flex flex-col justify-center items-center">
  <span class="loading loading-lg"></span>
  {#if showError}
    <p class="text-error font-medium">
      Возможно, данной страницы просто не существует
    </p>
  {/if}
</div>
