import { Control, Controller, FieldErrors } from "react-hook-form"; import { Input } from "@plane/ui"; import { IExtendedWebhook } from "types/webhook"; interface IWebHookInput { control: Control; errors: FieldErrors; } export const WebHookInput = ({ control, errors }: IWebHookInput) => (
URL
(/^(ftp|http|https):\/\/[^ "]+$/.test(value) ? true : "Enter a valid URL"), }} render={({ field: { onChange, value } }) => ( )} /> {errors.url &&

{errors.url.message}

}
);