import React from "react"; import DropdownSelect from "./DropdownSelect"; type Props = { label: string, name: string, placeholder: string, type: string, horizontal: string, value: string, onChange: (_) => { }, error: string | null | undefined, required: boolean, onBlur: (_) => { }, options: any[], } export default function InputRow({ label, name, placeholder = "", type = "text", horizontal = true, value = undefined, onChange = (_) => { }, error = null, required = false, onBlur = (_) => { }, options = undefined, }) { return
{ error ?

{error}

: null }
; } function Input({ name, placeholder = "", type = "text", value = undefined, onChange = (e) => { }, onBlur = (e) => { }, isError = false, options = undefined, }) { switch (type) { case "textarea": { return (