UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

33 lines (32 loc) 803 B
import { createContext as e } from "react"; import { DEFAULT_PAGE_SIZE as t } from "../constants/pagination.js"; const r = e({ sortedData: [], table: {}, tableFetching: !1, tableLoading: !1, totalItems: -1 / 0, termOfSearch: "", page: 0, pageSize: t, totalPages: 1 / 0, isFirstLoad: !0, onSorting() { throw new Error("onSorting function is not implemented"); }, onChangeTermOfSearch() { throw new Error("onChangeTermOfSearch function is not implemented"); }, onSelectMultiselect() { throw new Error("onSelectMultiselect function is not implemented"); }, handlePage() { throw new Error("handlePage function is not implemented"); }, onPageSize() { throw new Error("onPageSize function is not implemented"); } }); export { r as TableContext };