mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-02 08:09:10 +00:00
12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
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;
|