import type { UseFormReturn } from "react-hook-form"; import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "~/client/components/ui/form"; import { Input } from "~/client/components/ui/input"; import { SecretInput } from "~/client/components/ui/secret-input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "~/client/components/ui/select"; import type { NotificationFormValues } from "../create-notification-form"; type Props = { form: UseFormReturn; }; export const NtfyForm = ({ form }: Props) => { return ( <> ( Server URL (Optional) Leave empty to use ntfy.sh public service. )} /> ( Topic The ntfy topic name to publish to. )} /> ( Username (Optional) Username for server authentication, if required. )} /> ( Password (Optional) Password for server authentication, if required. )} /> ( Access token (Optional) Access token for server authentication. Will take precedence over username/password if set. )} /> ( Priority )} /> ); };