(state: PersistedChatsState)
| 98 | } |
| 99 | |
| 100 | export function saveChatState(state: PersistedChatsState): void { |
| 101 | if (typeof window === 'undefined') return |
| 102 | try { |
| 103 | window.localStorage.setItem(CHAT_STORAGE_KEY, JSON.stringify(state)) |
| 104 | } catch { |
| 105 | // ignore |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | export function getProjectChatThreads( |
| 110 | projectId: string |
no outgoing calls
no test coverage detected