* feat: popout icon for ccip in calendar * refactor: simplify context --------- Co-authored-by: Razboy20 <razboy20@gmail.com>
12 lines
247 B
TypeScript
12 lines
247 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
/**
|
|
* Context for the calendar.
|
|
*/
|
|
export const CalendarContext = createContext(false);
|
|
|
|
/**
|
|
* @returns The calendar context.
|
|
*/
|
|
export const useCalendar = () => useContext(CalendarContext);
|