{#if user} Collection Wishlist {avatar} My Account Profile Collection Wishlist
{ boredState.update((n) => ({ ...n, loading: true })); return async ({ result }) => { console.log(result); if (result.type === 'success' || result.type === 'redirect') { toast.success('Logged Out'); } else if (result.type === 'error') { console.log(result); toast.error(`Error: ${result.error.message}`); } else { toast.error(`Something went wrong.`); console.log(result); } await invalidateAll(); await applyAction(result); boredState.update((n) => ({ ...n, loading: true })); }; }} action="/logout" method="POST" >
{/if} {#if !user} Login Sign Up {/if}