{#if visibility === 'private'} {$i18n.t('Only select users and groups with permission can access')} {:else if visibility === 'public'} {$i18n.t('Accessible to all users')} {:else} {$i18n.t('Anyone with the link can view')} {/if}
{#if hasPublicReadGrant(accessGrants ?? []) && !hasAnyoneReadGrant(accessGrants ?? []) && accessRoles.includes('write')}