-
+
+
{mapNotesToLabelsMajor(i)}
))}
diff --git a/src/context/challenge.tsx b/src/context/challenge.tsx
new file mode 100644
index 0000000..04e8652
--- /dev/null
+++ b/src/context/challenge.tsx
@@ -0,0 +1,16 @@
+import React, { createContext, useState } from "react";
+export const ChallengeContext = createContext({});
+
+type Props = {
+ children: React.ReactNode;
+};
+
+export default function ChallengeContextProvider({ children }: Props) {
+ const [foo, setFoo] = useState(false);
+
+ return (
+
+ {children}
+
+ );
+}
diff --git a/tsconfig.json b/tsconfig.json
index 2dbebfd..952382d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,6 +5,7 @@
"@data":["src/data.json"],
"@components/*": ["src/components/*"],
"@utils/*": ["src/utils/*"],
+ "@context/*": ["src/context/*"],
"@types": ["src/types.ts"],
},
"target": "ES2020",
diff --git a/vite.config.ts b/vite.config.ts
index 0f02b48..577de4f 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -16,6 +16,7 @@ export default defineConfig({
"@utils": path.resolve(__dirname, "./src/utils"),
"@data": path.resolve(__dirname, "./src/data.json"),
"@types": path.resolve(__dirname, "./src/types.ts"),
+ "@context": path.resolve(__dirname, "./src/context"),
},
},
test: {