summaryrefslogtreecommitdiff
path: root/util/NoteContext.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'util/NoteContext.tsx')
-rw-r--r--util/NoteContext.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/NoteContext.tsx b/util/NoteContext.tsx
new file mode 100644
index 0000000..4578ca2
--- /dev/null
+++ b/util/NoteContext.tsx
@@ -0,0 +1,11 @@
+import { createContext } from 'react'
+
+export interface NoteContextProps {
+ outline: boolean
+ collapse: boolean
+}
+
+export const NoteContext = createContext<NoteContextProps>({
+ outline: false,
+ collapse: true,
+})