import { DataTableProvider } from "@/lib/app/contexts/DataTableContext";
import DataTable from "./Datatable";
import { ReloadDataTableProvider } from "@/lib/app/contexts/ReloadDatatableContext";

function DataTableStructure(props) {
  return (
    <ReloadDataTableProvider>
      <DataTableProvider>
        <DataTable {...props} token={localStorage.getItem("_token")} />
      </DataTableProvider>
    </ReloadDataTableProvider>
  );
}

export default DataTableStructure;
