mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-23 05:39:09 +02:00
16 lines
557 B
TypeScript
16 lines
557 B
TypeScript
// This file is licensed under the Fossorial Commercial License.
|
|
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
|
|
//
|
|
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
|
|
|
|
import { GetApiKeyResponse } from "@server/routers/apiKeys";
|
|
import { createContext } from "react";
|
|
|
|
interface ApiKeyContextType {
|
|
apiKey: GetApiKeyResponse;
|
|
updateApiKey: (updatedApiKey: Partial<GetApiKeyResponse>) => void;
|
|
}
|
|
|
|
const ApiKeyContext = createContext<ApiKeyContextType | undefined>(undefined);
|
|
|
|
export default ApiKeyContext;
|