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