LibreChat/client/src/store/optionSettings.ts
Dan Orlando 96d29f7390
refactor(client): Refactors recent typescript changes for best practices (#763)
* create common types in client

* remove unnecessary rules from eslint config

* cleanup types

* put back eslintrc rules
2023-08-05 16:45:26 -04:00

39 lines
697 B
TypeScript

import { atom } from 'recoil';
type TOptionSettings = {
showExamples?: boolean;
isCodeChat?: boolean;
};
const optionSettings = atom<TOptionSettings>({
key: 'optionSettings',
default: {},
});
const showPluginStoreDialog = atom<boolean>({
key: 'showPluginStoreDialog',
default: false,
});
const showAgentSettings = atom<boolean>({
key: 'showAgentSettings',
default: false,
});
const showBingToneSetting = atom<boolean>({
key: 'showBingToneSetting',
default: false,
});
const showPopover = atom<boolean>({
key: 'showPopover',
default: false,
});
export default {
optionSettings,
showPluginStoreDialog,
showAgentSettings,
showBingToneSetting,
showPopover,
};