summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/components/Guard.svelte
blob: fd7ded4312c2f3dc8251f9dbf3d203a67072d5cf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                    
<script lang="ts">
	import { getResultState } from '$lib/Utils';
	import Spinner from './Spinner.svelte';

	export let result;
	$: state = getResultState($result);
</script>

{#if state.fetching}
	<Spinner />
{:else}
	<p>{state.message}</p>
{/if}