{"version":3,"file":"tableSectionContext.cjs","sources":["../../../../src/components/table/tableSectionContext.tsx"],"sourcesContent":["import React, { createContext, useContext } from \"react\";\nimport type {\n    TableSectionContext,\n    TableSectionContextProviderProps,\n} from \"./types.js\";\n\nconst tableSectionContext = createContext<TableSectionContext>({\n    isTableHead: false,\n    isTableBody: false,\n    isTableFooter: false,\n});\n\nexport const useTableSectionContext = (): TableSectionContext =>\n    useContext(tableSectionContext);\n\nexport const TableSectionContextProvider: React.FC<\n    TableSectionContextProviderProps\n> = ({ state, children }) => (\n    <tableSectionContext.Provider value={state}>\n        {children}\n    </tableSectionContext.Provider>\n);\n"],"names":["tableSectionContext","createContext","isTableHead","isTableBody","isTableFooter","state","children","jsx","Provider","value","useContext"],"mappings":"wIAMMA,EAAsBC,EAAAA,cAAmC,CAC3DC,aAAa,EACbC,aAAa,EACbC,eAAe,wCAQf,EAAGC,MAAAA,EAAOC,SAAAA,KACVC,EAAAA,IAACP,EAAoBQ,SAApB,CAA6BC,MAAOJ,EAChCC,SAAAA,mCAP6B,IAClCI,EAAAA,WAAWV"}