redoc/src/components/OptionsProvider.ts

8 lines
306 B
TypeScript
Raw Normal View History

2018-01-22 21:30:53 +03:00
import * as React from 'react';
2017-11-21 14:00:33 +03:00
import { RedocNormalizedOptions } from '../services/RedocNormalizedOptions';
2018-03-17 23:04:37 +03:00
export const OptionsContext = React.createContext(new RedocNormalizedOptions({}));
export const OptionsProvider = OptionsContext.Provider;
export const OptionsConsumer = OptionsContext.Consumer;