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