setSelectedRows(checked ? webhooks.map((w) => w.uuid) : [])
}
/>
{_('Name')}
{_('URL')}
{_('Events')}
{_('Status')}
{_('Pending')}
{_('Failed')}
{webhooks.map((w) => (
setSelectedRows(
checked
? selectedRows.concat([w.uuid])
: selectedRows.filter((row) => row !== w.uuid)
)
}
/>
{w.name}
{w.url}
{w.topics.length}
{w.enabled ? _('Enabled') : _('Disabled')}
{w.pendingCount}
{w.failedCount > 0 ? (
{w.failedCount}
) : (
0
)}
))}
{webhooks.length === 0 && (
{_(
'No webhook yet. Create one to send store events to another system.'
)}
)}