declare const rowActionSource = "\nimport { DataTable, DropdownItem, RowActionMenuItem } from '@jtl-software/platform-ui-react';\n\nconst App = () => {\n\n  const handleRowActionClick = (record: Person) => {\n    console.log('Row action clicked:', record);\n  };\n\n  const rowActionMenuItems: RowActionMenuItem<Person>[] = [\n    {\n      label: 'Edit',\n      icon: 'Edit',\n      type: DropdownItem.Default,\n      onClick: (record: Person) => {\n        // Write your edit action here\n      },\n    },\n    {\n      label: 'Delete',\n      icon: 'Trash2',\n      type: DropdownItem.Default,\n      onClick: (record: Person) => {\n        // Write your delete action here\n      },\n    },\n  ];\n\n  return (\n    <DataTable\n      dataSource={data} // mock data\n      columns={columns}\n      tableHeight={500}\n      rowAction={{\n        enabled: true,\n        menuItems: rowActionMenuItems,\n      }}\n    />\n  );\n};  \n\nexport default App;\n";
export default rowActionSource;
