This commit is contained in:
2025-06-04 10:20:01 +08:00
parent 7994ecc100
commit ad1144ad69
42 changed files with 5536 additions and 3740 deletions

View File

@@ -1,10 +1,6 @@
import {createContext, ReactNode, useContext} from "react";
import { createContext, ReactNode, useContext } from "react";
export default function AppContext({
children,
}: {
children: ReactNode;
}) {
export default function AppContext({ children }: { children: ReactNode }) {
return (
<context.Provider value={new Map<string, any>()}>
{children}
@@ -15,5 +11,5 @@ export default function AppContext({
const context = createContext<Map<string, any>>(new Map<string, any>());
export function useAppContext() {
return useContext(context)
}
return useContext(context);
}