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:
Samuel Gunter
2024-05-21 08:50:31 -07:00
committed by GitHub
parent a2303ee35f
commit 6812d685d0
3 changed files with 57 additions and 32 deletions

View 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);