import { forwardRef } from 'react'; import { Wrapper, StyledLabel, StyledSubLabel, StyledSelect, } from './selectFieldStyle'; const SelectField = forwardRef(({ label, subLabel, id, options = [], inline = false, small = false, defaultOption, ...props }, ref) => ( {label && {label}} {subLabel && {subLabel}} {defaultOption && } {Array.isArray(options) ? ( options.map(value => ) ) : ( Object.entries(options).map(([key, value]) => ) )} )); export default SelectField;