@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":"TableBodyContext.mjs","sources":["../../../src/components/Table/TableBodyContext.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext } from 'react';\nimport type { FlowbiteTableBodyTheme } from './TableBody';\n\nexport type TableBodyContext = {\n theme: FlowbiteTableBodyTheme;\n};\n\nexport const TableBodyContext = createContext<TableBodyContext | undefined>(undefined);\n\nexport function useTableBodyContext(): TableBodyContext {\n const context = useContext(TableBodyContext);\n\n if (!context) {\n throw new Error('useTableBodyContext should be used within the TableBodyContext provider!');\n }\n\n return context;\n}\n"],"names":["TableBodyContext","createContext","undefined","useTableBodyContext","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;"}