import { default as RowActionMenuItem } from './RowActionMenuItem'; /** * Props for the row action feature * @param enabled If true, shows a dropdown menu on each row with actions like delete, export, etc * @param menuItems An array of actions (e.g., "Delete", "Export") to display when row action is triggered. * * @example * ```tsx * const rowActionHandler: RowActionHandler = { * enabled: true, * menuItems: [ * { * label: 'Edit', * icon: 'Edit', * onClick: (record) => console.log('Edit', record), * }, * { * label: 'Delete', * icon: 'Trash2', * onClick: (record) => console.log('Delete', record), * }, * ], * }; * ``` */ type RowActionHandler = { enabled: boolean; menuItems: RowActionMenuItem[]; }; export default RowActionHandler;