{#if user.isLoggedIn && user.profile}
{#snippet child({ props })} {/snippet}
{:else if !user.isInitializing}
Login to edit your page
{/if}