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

11 lines
345 B
TypeScript
Raw Normal View History

2023-06-23 10:52:03 +00:00
import {createContext} from "preact";
2023-06-27 11:51:04 +00:00
import {type Feature} from "../storage/exports.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!);