/* * Copyright (c) 2021 - 2024, Ludvig Lundgren and the autobrr contributors. * SPDX-License-Identifier: GPL-2.0-or-later */ import { useMutation, useSuspenseQuery } from "@tanstack/react-query"; import { getRouteApi } from "@tanstack/react-router"; import Select from "react-select"; import { APIClient } from "@api/APIClient"; import { ConfigQueryOptions } from "@api/queries"; import { SettingsKeys } from "@api/query_keys"; import { toast } from "@components/hot-toast"; import Toast from "@components/notifications/Toast"; import { LogLevelOptions, SelectOption } from "@domain/constants"; import { Section, RowItem } from "./_components"; import * as common from "@components/inputs/common"; import { LogFiles } from "@screens/Logs"; type SelectWrapperProps = { id: string; value: unknown; onChange: any; options: unknown[]; }; const SelectWrapper = ({ id, value, onChange, options }: SelectWrapperProps) => (