Format all files

This commit is contained in:
Owen
2025-12-09 10:56:14 -05:00
parent fa839a811f
commit f9b03943c3
535 changed files with 7670 additions and 5626 deletions

View File

@@ -7,14 +7,16 @@ import { useContext } from "react";
export function useRemoteExitNodeContext() {
if (build == "oss") {
return {
return {
remoteExitNode: {} as GetRemoteExitNodeResponse,
updateRemoteExitNode: () => {},
updateRemoteExitNode: () => {}
};
}
const context = useContext(RemoteExitNodeContext);
if (context === undefined) {
throw new Error("useRemoteExitNodeContext must be used within a RemoteExitNodeProvider");
throw new Error(
"useRemoteExitNodeContext must be used within a RemoteExitNodeProvider"
);
}
return context;
}