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

11 lines
344 B
TypeScript

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