import { Option , Selection } from '../../types' ; const getSingleSelection = ( selectedOption ) : Selection => { return { display : ( getDisplayValue ) => getDisplayValue ( selectedOption ) , isSelected : ( ) => ! ! selectedOption , isOptionSelected : option => option . value === selectedOption ?. value } ; } ; export default getSingleSelection ;