@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
11 lines (10 loc) • 357 B
JavaScript
'use client';
import { createContext, useContext } from 'react';
export const TimelineContext = createContext(undefined);
export function useTimelineContext() {
const context = useContext(TimelineContext);
if (!context) {
throw new Error('useTimelineContext should be used within the TimelineContext provider!');
}
return context;
}