Add dashboard to build
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { createContext } from "preact";
|
||||
import { useContext } from "preact/compat";
|
||||
import { Reminder } from "../../api";
|
||||
|
||||
export const ReminderContext = createContext<
|
||||
[Reminder, (r: (reminder: Reminder) => Reminder) => void]
|
||||
>([null, () => {}]);
|
||||
|
||||
export const useReminder = () => useContext(ReminderContext);
|
||||
Reference in New Issue
Block a user