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

11 lines
345 B
TypeScript

import {createContext} from "preact";
import {type Feature} from "../storage/exports.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!);