{#if user.isLoggedIn && user.profile}
{#snippet child({ props })} {/snippet}
{#if user.profile} {/if}
{/if}