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 { Checkbox } from "~/client/components/ui/checkbox"; import type { NotificationFormValues } from "../create-notification-form"; type Props = { form: UseFormReturn; }; export const EmailForm = ({ form }: Props) => { return ( <> ( SMTP Host )} /> ( SMTP Port field.onChange(Number(e.target.value))} /> )} /> ( Username (Optional) )} /> ( Password (Optional) )} /> ( From Address )} /> ( From Name (Optional) The display name shown in the email client. )} /> ( To Addresses field.onChange( e.target.value .split(",") .map((email) => email.trim()) .filter(Boolean), ) } /> Comma-separated list of recipient email addresses. )} /> (
Use TLS Enable TLS encryption for SMTP connection.
)} /> ); };