text-editor-drcsystems
Version:
Text Editor Made with Love by DRC Systems
19 lines (18 loc) • 598 B
TypeScript
/**
* 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 {};