mirror of
https://github.com/khairul169/db-backup-tool.git
synced 2025-04-28 16:49:34 +07:00
16 lines
413 B
TypeScript
16 lines
413 B
TypeScript
import React from "react";
|
|
import DataTableComponent, { TableColumn } from "react-data-table-component";
|
|
|
|
type DataTableProps = React.ComponentPropsWithoutRef<typeof DataTableComponent>;
|
|
|
|
const DataTable = ({ ...props }: DataTableProps) => {
|
|
return (
|
|
<div className="w-full overflow-x-auto">
|
|
<DataTableComponent {...props} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export type { TableColumn };
|
|
export default DataTable;
|