wip: refactor
This commit is contained in:
7
apps/desktop2/src/ark.tsx
Normal file
7
apps/desktop2/src/ark.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Ark, ArkContext } from "@lume/ark";
|
||||
import { PropsWithChildren, useMemo } from "react";
|
||||
|
||||
export const ArkProvider = ({ children }: PropsWithChildren<object>) => {
|
||||
const ark = useMemo(() => new Ark(), []);
|
||||
return <ArkContext.Provider value={ark}>{children}</ArkContext.Provider>;
|
||||
};
|
||||
Reference in New Issue
Block a user