{#if row.kind === NOTIFICATION_KIND.SHARE_GRANTED}
{@const p = row.payload as unknown as SharegrantedPayload}
{@const href = resourceHref(row.payload)}
{' '}{t(
'notifications.share_granted.verb',
'shared'
)}
{' '}
{#if href}
{p.resource_name ?? p.resource_type}
{:else}
{p.resource_name ?? p.resource_type}
{/if}
{' '}({p.role})
{:else}
{t('notifications.persistent.generic', { kind: row.kind }, `Notification (${row.kind}).`)}
{/if}