UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

11 lines (10 loc) 347 B
'use client'; import { createContext, useContext } from 'react'; export const NavbarContext = createContext(undefined); export function useNavbarContext() { const context = useContext(NavbarContext); if (!context) { throw new Error('useNavBarContext should be used within the NavbarContext provider!'); } return context; }