32 lines
963 B
TypeScript
32 lines
963 B
TypeScript
/**
|
|
* Shared Action Snippets
|
|
* Common action button definitions for data tables
|
|
*/
|
|
|
|
export const commonActions = [
|
|
{ key: 'view', label: 'View', icon: 'Eye' },
|
|
{ key: 'edit', label: 'Edit', icon: 'Edit' },
|
|
{ key: 'delete', label: 'Delete', icon: 'Trash' },
|
|
];
|
|
|
|
export const keywordActions = [
|
|
{ key: 'edit', label: 'Edit', icon: 'Edit' },
|
|
{ key: 'delete', label: 'Delete', icon: 'Trash' },
|
|
];
|
|
|
|
export const taskActions = [
|
|
{ key: 'view', label: 'View', icon: 'Eye' },
|
|
{ key: 'edit', label: 'Edit', icon: 'Edit' },
|
|
{ key: 'generate', label: 'Generate', icon: 'Magic' },
|
|
{ key: 'publish', label: 'Publish', icon: 'Send' },
|
|
{ key: 'delete', label: 'Delete', icon: 'Trash' },
|
|
];
|
|
|
|
export const bulkActions = {
|
|
updateStatus: { key: 'update_status', label: 'Update Status' },
|
|
delete: { key: 'delete', label: 'Delete' },
|
|
assignCluster: { key: 'assign_cluster', label: 'Assign Cluster' },
|
|
export: { key: 'export', label: 'Export CSV' },
|
|
};
|
|
|