12 lines
288 B
TypeScript
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!);
|