1
Fork 0
tildes-reextended/source/options/context.ts

11 lines
344 B
TypeScript
Raw Normal View History

2023-06-23 10:52:03 +00:00
import {createContext} from "preact";
import {type Feature} from "../storage/common.js";
type AppContextValues = {
2023-06-23 10:52:03 +00:00
setActiveFeature: (feature: Feature) => void;
toggleFeature: (feature: Feature) => void;
};
2023-06-23 10:52:03 +00:00
// eslint-disable-next-line @typescript-eslint/naming-convention
export const AppContext = createContext<AppContextValues>(null!);