feat: popout icon for ccip in calendar (#221)
* feat: popout icon for ccip in calendar * refactor: simplify context --------- Co-authored-by: Razboy20 <razboy20@gmail.com>
This commit is contained in:
11
src/views/contexts/CalendarContext.ts
Normal file
11
src/views/contexts/CalendarContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
/**
|
||||
* Context for the calendar.
|
||||
*/
|
||||
export const CalendarContext = createContext(false);
|
||||
|
||||
/**
|
||||
* @returns The calendar context.
|
||||
*/
|
||||
export const useCalendar = () => useContext(CalendarContext);
|
||||
Reference in New Issue
Block a user