import { P as e } from "../../../../packageName-CJwD6mUt.js";
const t = `
import { DataTable, DropdownItem, RowActionMenuItem } from '${e}';

const App = () => {

  const handleRowActionClick = (record: Person) => {
    console.log('Row action clicked:', record);
  };

  const rowActionMenuItems: RowActionMenuItem<Person>[] = [
    {
      label: 'Edit',
      icon: 'Edit',
      type: DropdownItem.Default,
      onClick: (record: Person) => {
        // Write your edit action here
      },
    },
    {
      label: 'Delete',
      icon: 'Trash2',
      type: DropdownItem.Default,
      onClick: (record: Person) => {
        // Write your delete action here
      },
    },
  ];

  return (
    <DataTable
      dataSource={data} // mock data
      columns={columns}
      tableHeight={500}
      rowAction={{
        enabled: true,
        menuItems: rowActionMenuItems,
      }}
    />
  );
};  

export default App;
`;
export {
  t as default
};
//# sourceMappingURL=rowActionSource.js.map
