19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
import DataTable_Main from "./Main";
|
|
import DataTableProvider from "@/lib/contexts/DataTable";
|
|
|
|
const DataTable = (props) => {
|
|
return (
|
|
<DataTableProvider
|
|
user_id={props.user_id}
|
|
page_name={props.page_name}
|
|
table_name={props.table_name}
|
|
columns={props.columns}
|
|
initialSort={props.sorting}
|
|
>
|
|
<DataTable_Main {...props} />
|
|
</DataTableProvider>
|
|
);
|
|
};
|
|
|
|
export default DataTable;
|