UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (12 loc) 406 B
'use client'; import { createContext, useContext } from 'react'; const RatingContext = createContext(void 0); function useRatingContext() { const context = useContext(RatingContext); if (!context) { throw new Error("useRatingContext should be used within the RatingContext provider!"); } return context; } export { RatingContext, useRatingContext }; //# sourceMappingURL=RatingContext.js.map