{#if !hasPublicReadGrant(accessGrants ?? [])} {:else} {/if}
{#if !hasPublicReadGrant(accessGrants ?? [])} {$i18n.t('Only select users and groups with permission can access')} {:else} {$i18n.t('Accessible to all users')} {/if}
{#if share}
{$i18n.t('Access List')}
{#each accessGroups as group}
{group.name.charAt(0).toUpperCase()}
{group.name} {group?.member_count} {$i18n.t('members')}
{/each} {#each selectedUsers as user}
{user.name
{user.name ?? user.id}
{/each} {#if !hasPublicReadGrant(accessGrants ?? []) && accessGroups.length === 0 && selectedUsers.length === 0}
{$i18n.t('No access grants. Private to you.')}
{/if}
{/if}