apple2js/js/components/OptionsContext.tsx

8 lines
203 B
TypeScript
Raw Normal View History

import { createContext } from 'preact';
import { Options } from '../options';
/**
* Context for getting, setting and configuring options
*/
export const OptionsContext = createContext(new Options());