@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
1 lines • 951 B
Source Map (JSON)
{"version":3,"file":"TableHeadContext.mjs","sources":["../../../src/components/Table/TableHeadContext.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext } from 'react';\nimport type { FlowbiteTableHeadTheme } from './TableHead';\n\nexport type TableHeadContext = {\n theme: FlowbiteTableHeadTheme;\n};\n\nexport const TableHeadContext = createContext<TableHeadContext | undefined>(undefined);\n\nexport function useTableHeadContext(): TableHeadContext {\n const context = useContext(TableHeadContext);\n\n if (!context) {\n throw new Error('useTableHeadContext should be used within the TableHeadContext provider!');\n }\n\n return context;\n}\n"],"names":["TableHeadContext","createContext","undefined","useTableHeadContext","context","useContext","Error"],"mappings":";AASaA,MAAAA,IAAmBC,EAA4CC,MAAS;AAE9E,SAAAC,IAAA;AACLC,QAAAA,IAAgBC,EAAAL,CAA2B;AAAE,MAAA,CAExCI;AAAOE,UAAAA,IAAAA,MACM,0EAA0E;AAGrFF,SAAAA;AAAO;"}