aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/+layout.svelte
blob: 6192cd405790bf5e556882b33f5a8167a4135782 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script>
	import { browser } from '$app/environment';
	import { goto } from '$app/navigation';
	import { Pin } from '$comp';
	import { pin } from '$lib/store';
	import { onMount } from 'svelte';
	import { success, fail, post } from '$lib/utils';

	export let data;

	let { user } = data;
	let cancel = () => goto(`/${user.username}`);
</script>

{#if user.haspin && (!$pin || $pin?.length !== 6)}
	<Pin bind:value={$pin} {cancel} />
{/if}

<slot />