import React, {Dispatch, SetStateAction} from "react"; import {IconDefinition} from "@fortawesome/fontawesome-svg-core"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; interface SelectOption { label: string, value: string, } interface SelectOptionFieldProps { label: string, options: SelectOption[], setOptionValue: Dispatch>, isRequired?: boolean, isDisabled?: boolean, icon?: IconDefinition, } export default function SelectOptionField( { label, options, setOptionValue, isRequired = false, isDisabled = false, icon }: SelectOptionFieldProps ) { return (
{ icon && }
) }