@react-md/table
Version:
Create responsive data tables and accessible fixed tables
19 lines (15 loc) • 361 B
text/typescript
import { createContext, useContext } from "react";
const context = createContext(false);
if (process.env.NODE_ENV !== "production") {
context.displayName = "TableFooterContext";
}
/**
* @internal
*/
export const { Provider: TableFooterProvider } = context;
/**
* @internal
*/
export function useTableFooter(): boolean {
return useContext(context);
}