@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
1 lines • 913 B
Source Map (JSON)
{"version":3,"file":"SidebarItemContext.mjs","sources":["../../../src/components/Sidebar/SidebarItemContext.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, useContext } from 'react';\n\nexport type SidebarItemContext = {\n isInsideCollapse: boolean;\n};\n\nexport const SidebarItemContext = createContext<SidebarItemContext | undefined>(undefined);\n\nexport function useSidebarItemContext(): SidebarItemContext {\n const context = useContext(SidebarItemContext);\n\n if (!context) {\n throw new Error('useSidebarItemContext should be used within the SidebarItemContext provider!');\n }\n\n return context;\n}\n"],"names":["SidebarItemContext","createContext","undefined","useSidebarItemContext","context","useContext","Error"],"mappings":";AAQaA,MAAAA,IAAqBC,EAA8CC,MAAS;AAElF,SAAAC,IAAA;AACLC,QAAAA,IAAgBC,EAAAL,CAA6B;AAAE,MAAA,CAE1CI;AAAOE,UAAAA,IAAAA,MACM,8EAA8E;AAGzFF,SAAAA;AAAO;"}