@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
1 lines • 999 B
Source Map (JSON)
{"version":3,"file":"TimelineItemContext.mjs","sources":["../../../src/components/Timeline/TimelineItemContext.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext } from 'react';\nimport type { FlowbiteTimelineItemTheme } from './TimelineItem';\n\nexport type TimelineItemContext = {\n theme: FlowbiteTimelineItemTheme;\n};\n\nexport const TimelineItemContext = createContext<TimelineItemContext | undefined>(undefined);\n\nexport function useTimelineItemContext(): TimelineItemContext {\n const context = useContext(TimelineItemContext);\n\n if (!context) {\n throw new Error('useTimelineItemContext should be used within the TimelineItemContext provider!');\n }\n\n return context;\n}\n"],"names":["TimelineItemContext","createContext","undefined","useTimelineItemContext","context","useContext","Error"],"mappings":";AASaA,MAAAA,IAAsBC,EAA+CC,MAAS;AAEpF,SAAAC,IAAA;AACLC,QAAAA,IAAgBC,EAAAL,CAA8B;AAAE,MAAA,CAE3CI;AAAOE,UAAAA,IAAAA,MACM,gFAAgF;AAG3FF,SAAAA;AAAO;"}