Moved from electrobun to tauri+cef
This commit is contained in:
parent
0903f96ba3
commit
8a12ca7234
114 changed files with 822 additions and 513 deletions
19
apps/tauri/src/context.tsx
Normal file
19
apps/tauri/src/context.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { createContext } from "react";
|
||||
|
||||
type contextType = {
|
||||
nothing: undefined;
|
||||
};
|
||||
|
||||
export const context = createContext<contextType | undefined>(undefined);
|
||||
|
||||
export default function Provider({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<context.Provider
|
||||
value={{
|
||||
nothing: undefined,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</context.Provider>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue