| import { atom } from 'recoil'; |
| import { TAttachment } from 'librechat-data-provider'; |
| import { atomWithLocalStorage } from './utils'; |
| import { BadgeItem } from '~/common'; |
|
|
| const hideBannerHint = atomWithLocalStorage('hideBannerHint', [] as string[]); |
|
|
| const messageAttachmentsMap = atom<Record<string, TAttachment[] | undefined>>({ |
| key: 'messageAttachmentsMap', |
| default: {}, |
| }); |
|
|
| const queriesEnabled = atom<boolean>({ |
| key: 'queriesEnabled', |
| default: true, |
| }); |
|
|
| const isEditingBadges = atom<boolean>({ |
| key: 'isEditingBadges', |
| default: false, |
| }); |
|
|
| const chatBadges = atomWithLocalStorage<Pick<BadgeItem, 'id'>[]>('chatBadges', [ |
| |
| |
| { id: '1' }, |
| |
| ]); |
|
|
| export default { |
| hideBannerHint, |
| messageAttachmentsMap, |
| queriesEnabled, |
| isEditingBadges, |
| chatBadges, |
| }; |
|
|