Start implementing a new user page for account and security settings
This commit is contained in:
19
Frontend/src/pages/user/Loading.svelte
Normal file
19
Frontend/src/pages/user/Loading.svelte
Normal file
@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import { Alert, Spinner } from "flowbite-svelte";
|
||||
|
||||
export let loading: boolean;
|
||||
export let error: string | undefined;
|
||||
</script>
|
||||
|
||||
{#if loading}
|
||||
<div class="h-full flex justify-center items-center">
|
||||
<Spinner size={"16"} />
|
||||
</div>
|
||||
{:else if error}
|
||||
<Alert color="red">
|
||||
<span class="font-medium">Error occured!</span>
|
||||
{error}
|
||||
</Alert>
|
||||
{:else}
|
||||
<slot />
|
||||
{/if}
|
Reference in New Issue
Block a user