bananas-commerce-admin
Version:
What's this, an admin for apes?
10 lines • 435 B
JavaScript
import { createContext, useContext } from "react";
export const TableContext = createContext(undefined);
export const useTableContext = () => {
const context = useContext(TableContext);
if (context == null) {
throw new Error("useTableContext must be used within a TableProvider. You are most likely not using the correct <Table> parent component.");
}
return context;
};
//# sourceMappingURL=TableContext.js.map