UNPKG

react-calendar-kit

Version:

React Calendar Kit is a powerful and flexible library for building accessible and highly customizable calendar and date/time picker components in your React applications. React Calendar Kit provides a solid foundation for creating inclusive user experienc

3 lines (2 loc) 244 B
'use client'; import r,{createContext as u,useContext as a}from"react";function s(o){let t=u(null);return[({children:e,value:n})=>r.createElement(t.Provider,{value:n},e),()=>{let e=a(t);if(e===null)throw new Error(o);return e}]}export{s as a};