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

12 lines
288 B
TypeScript

import {createContext} from 'preact';
import Settings from '../settings.js';
type AppContextValues = {
settings: Settings;
setActiveFeature: (feature: string) => void;
toggleFeature: (feature: string) => void;
};
export const AppContext = createContext<AppContextValues>(null!);