import type { UseFormReturn } from "react-hook-form"; import type { FormValues } from "../create-volume-form"; import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "../../../../components/ui/form"; import { Input } from "../../../../components/ui/input"; import { SecretInput } from "../../../../components/ui/secret-input"; type Props = { form: UseFormReturn; }; export const WebDAVForm = ({ form }: Props) => { return ( <> ( Server WebDAV server hostname or IP address. )} /> ( Path Path to the WebDAV directory on the server. )} /> ( Username (Optional) Username for WebDAV authentication (optional). )} /> ( Password (Optional) Password for WebDAV authentication (optional). )} /> ( Port field.onChange(parseInt(e.target.value, 10) || undefined)} /> WebDAV server port (default: 80 for HTTP, 443 for HTTPS). )} /> ( Use SSL/HTTPS
field.onChange(e.target.checked)} className="rounded border-gray-300" /> Enable HTTPS for secure connections
Use HTTPS instead of HTTP for secure connections.
)} /> ( Read-only Mode
field.onChange(e.target.checked)} className="rounded border-gray-300" /> Mount volume as read-only
Prevent any modifications to the volume. Recommended for backup sources and sensitive data.
)} /> ); };