import { useQuery } from "@tanstack/react-query"; import { listRepositoriesOptions } from "~/client/api-client/@tanstack/react-query.gen"; import { RepositoryIcon } from "~/client/components/repository-icon"; import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "~/client/components/ui/form"; import { Input } from "~/client/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "~/client/components/ui/select"; import type { Volume } from "~/client/lib/types"; import type { UseFormReturn } from "react-hook-form"; import type { InternalFormValues } from "./types"; type BasicInfoSectionProps = { form: UseFormReturn; volume: Volume; }; export const BasicInfoSection = ({ form, volume }: BasicInfoSectionProps) => { const { data: repositoriesData } = useQuery({ ...listRepositoriesOptions(), }); return ( <> ( Backup name A unique name to identify this backup schedule. )} /> ( Backup repository Choose where encrypted backups for {volume.name} will be stored. )} /> ); };