6 lines
179 B
TypeScript
6 lines
179 B
TypeScript
|
|
import { createContext, useContext } from "react";
|
||
|
|
|
||
|
|
export const ApiKeyContext = createContext({ key: "", error: "" });
|
||
|
|
|
||
|
|
export const useApiKey = () => useContext(ApiKeyContext);
|