mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user