pswui-docs/src/HeadingContext.tsx

13 lines
315 B
TypeScript

import { type Dispatch, type SetStateAction, createContext } from "react";
export const HeadingContext = createContext<
[string[], Dispatch<SetStateAction<string[]>>]
>([
[],
() => {
if (process.env && process.env.NODE_ENV === "development") {
console.log("HeadingContext outside");
}
},
]);