| import { atomFamily, atomWithStorage } from 'jotai/utils'; |
| import { Constants, LocalStorageKeys } from 'librechat-data-provider'; |
|
|
| |
| |
| |
| |
| export const mcpValuesAtomFamily = atomFamily((conversationId: string | null) => { |
| const key = conversationId ?? Constants.NEW_CONVO; |
| const storageKey = `${LocalStorageKeys.LAST_MCP_}${key}`; |
|
|
| return atomWithStorage<string[]>(storageKey, [], undefined, { getOnInit: true }); |
| }); |
|
|
| |
| |
| |
| export const mcpPinnedAtom = atomWithStorage<boolean>(LocalStorageKeys.PIN_MCP_, true, undefined, { |
| getOnInit: true, |
| }); |
|
|