mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-11 23:46:50 +00:00
Chungus 2.0
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
/*
|
||||
* This file is part of a proprietary work.
|
||||
*
|
||||
* Copyright (c) 2025 Fossorial, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is licensed under the Fossorial Commercial License.
|
||||
* You may not use this file except in compliance with the License.
|
||||
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
|
||||
*
|
||||
* This file is not licensed under the AGPLv3.
|
||||
*/
|
||||
|
||||
import { GetRemoteExitNodeResponse } from "@server/routers/private/remoteExitNode";
|
||||
import { createContext } from "react";
|
||||
|
||||
type RemoteExitNodeContextType = {
|
||||
remoteExitNode: GetRemoteExitNodeResponse;
|
||||
updateRemoteExitNode: (updatedRemoteExitNode: Partial<GetRemoteExitNodeResponse>) => void;
|
||||
};
|
||||
|
||||
const RemoteExitNodeContext = createContext<RemoteExitNodeContextType | undefined>(undefined);
|
||||
|
||||
export default RemoteExitNodeContext;
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* This file is part of a proprietary work.
|
||||
*
|
||||
* Copyright (c) 2025 Fossorial, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is licensed under the Fossorial Commercial License.
|
||||
* You may not use this file except in compliance with the License.
|
||||
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
|
||||
*
|
||||
* This file is not licensed under the AGPLv3.
|
||||
*/
|
||||
|
||||
import { GetOrgSubscriptionResponse } from "@server/routers/private/billing";
|
||||
import { createContext } from "react";
|
||||
|
||||
type SubscriptionStatusContextType = {
|
||||
subscriptionStatus: GetOrgSubscriptionResponse | null;
|
||||
updateSubscriptionStatus: (updatedSite: GetOrgSubscriptionResponse) => void;
|
||||
isActive: () => boolean;
|
||||
getTier: () => string | null;
|
||||
};
|
||||
|
||||
const PrivateSubscriptionStatusContext = createContext<
|
||||
SubscriptionStatusContextType | undefined
|
||||
>(undefined);
|
||||
|
||||
export default PrivateSubscriptionStatusContext;
|
||||
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;
|
||||
15
src/contexts/subscriptionStatusContext.ts
Normal file
15
src/contexts/subscriptionStatusContext.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { GetOrgSubscriptionResponse } from "#private/routers/billing";
|
||||
import { createContext } from "react";
|
||||
|
||||
type SubscriptionStatusContextType = {
|
||||
subscriptionStatus: GetOrgSubscriptionResponse | null;
|
||||
updateSubscriptionStatus: (updatedSite: GetOrgSubscriptionResponse) => void;
|
||||
isActive: () => boolean;
|
||||
getTier: () => string | null;
|
||||
};
|
||||
|
||||
const SubscriptionStatusContext = createContext<
|
||||
SubscriptionStatusContextType | undefined
|
||||
>(undefined);
|
||||
|
||||
export default SubscriptionStatusContext;
|
||||
Reference in New Issue
Block a user