mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 06:58:19 +00:00
Chungus 2.0
This commit is contained in:
11
src/contexts/remoteExitNodeContext.ts
Normal file
11
src/contexts/remoteExitNodeContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { GetRemoteExitNodeResponse } from "#private/routers/remoteExitNode";
|
||||
import { createContext } from "react";
|
||||
|
||||
type RemoteExitNodeContextType = {
|
||||
remoteExitNode: GetRemoteExitNodeResponse;
|
||||
updateRemoteExitNode: (updatedRemoteExitNode: Partial<GetRemoteExitNodeResponse>) => void;
|
||||
};
|
||||
|
||||
const RemoteExitNodeContext = createContext<RemoteExitNodeContextType | undefined>(undefined);
|
||||
|
||||
export default RemoteExitNodeContext;
|
||||
Reference in New Issue
Block a user