* Fetch general settings from API
(signal?: AbortSignal)
| 63 | * Fetch general settings from API |
| 64 | */ |
| 65 | async function fetchGeneralSettings(signal?: AbortSignal): Promise<GeneralSettings> { |
| 66 | const { data } = await requestJson(getUserSettingsContract, { signal }) |
| 67 | return mapGeneralSettingsResponse(data) |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Hook to fetch general settings. |
no test coverage detected