blob: 58f447361f0690ac120da26c8cf070dab1cb5039 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<script>
import { goto } from "$app/navigation";
import Pin from "$comp/Pin.svelte";
import { pin } from "$lib/store";
let { data, children } = $props();
let user = $derived(data.user);
let cancel = () => goto(`/${user.username}`);
</script>
{#if user?.haspin && (!$pin || $pin?.length !== 6)}
<Pin bind:value={$pin} {cancel} />
{/if}
{@render children?.()}
|