export type DropdownOption = { name: string, value: string, }; type Props = { label: string, name: string, horizontal?: boolean, value?: string, onChange?: (_) => void, error?: string, required?: boolean, options: DropdownOption[], } export default function DropdownSelect({ label, name, horizontal = true, value = undefined, onChange = (_) => { }, error = null, required = false, options, }: Props) { return (
{/*
*/}
{ error ?

{error}

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