dify/web/app/components/base/chat/storage.ts
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

14 lines
578 B
TypeScript

import { createLocalStorageState } from 'foxact/create-local-storage-state'
import { CONVERSATION_ID_INFO } from './constants'
const [useConversationIdInfo, _useConversationIdInfoValue, _useSetConversationIdInfo] =
createLocalStorageState<Record<string, Record<string, string>>>(CONVERSATION_ID_INFO, {})
const [
useWebAppSidebarCollapseState,
_useWebAppSidebarCollapseStateValue,
_useSetWebAppSidebarCollapseState,
] = createLocalStorageState<string>('webappSidebarCollapse', undefined, { raw: true })
export { useConversationIdInfo, useWebAppSidebarCollapseState }