{/* Statistics */}
{/* Toolbar */}
{manualDisabledCount + autoDisabledCount > 0 && (
)}
{enabledCount > 0 && (
)}
{autoDisabledCount > 0 && (
)}
{!canEditSensitive && (
{t('No permission to perform this action')}
)}
{/* Table */}
{isLoading ? (
) : keys.length === 0 ? (
{t('No keys found')}
) : (
key.index}
columns={[
{
id: 'index',
header: t('Index'),
className: 'w-20',
cellClassName: 'font-mono text-sm',
cell: (key) => `#${key.index + 1}`,
},
{
id: 'status',
header: t('Status'),
className: 'w-32',
cell: (key) => renderStatusBadge(key.status),
},
{
id: 'reason',
header: t('Disabled Reason'),
className: 'min-w-[200px]',
cellClassName: 'max-w-xs truncate text-sm',
cell: (key) => key.reason || '-',
},
{
id: 'disabled-time',
header: t('Disabled Time'),
className: 'w-44',
cellClassName: 'text-muted-foreground text-sm',
cell: (key) => formatKeyTimestamp(key.disabled_time),
},
{
id: 'actions',
header: t('Actions'),
className: 'text-right',
cell: (key) => (
),
},
]}
/>
)}
{/* Pagination */}
{totalPages > 1 && (
{t('Page {{current}} of {{total}}', {
current: currentPage,
total: totalPages,
})}
)}