UNPKG

text-editor-drcsystems

Version:
19 lines (18 loc) 598 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import type { SettingName } from '../appSettings'; import { ReactNode } from 'react'; declare type SettingsContextShape = { setOption: (name: SettingName, value: boolean) => void; settings: Record<SettingName, boolean>; }; export declare const SettingsContext: ({ children, }: { children: ReactNode; }) => JSX.Element; export declare const useSettings: () => SettingsContextShape; export {};