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