| 16 | }; |
| 17 | |
| 18 | interface SettingState { |
| 19 | setting: Setting; |
| 20 | getState: () => SettingState; |
| 21 | setLocale: (locale: Setting["locale"]) => void; |
| 22 | setTheme: (theme: Setting["theme"]) => void; |
| 23 | setOpenAIApiConfig: (openAIApiConfig: Setting["openAIApiConfig"]) => void; |
| 24 | } |
| 25 | |
| 26 | export const useSettingStore = create<SettingState>()( |
| 27 | persist( |
nothing calls this directly
no outgoing calls
no test coverage detected