import * as React from "react" ; import { EducationLevel , educationLevels } from "polar-shared/src/util/EducationLevels" ; export interface IOption < T > { readonly value : T ; readonly label : string ; } function toOption ( educationLevel ) { return { value : educationLevel , label : educationLevel . name } ; } const options = educationLevels . map ( toOption ) ; interface IProps { readonly placeholder ? : string ; readonly onSelect : ( option : IOption < EducationLevel > | undefined ) => void ; } export const EducationLevelSelect = ( props ) => { type RawOption = IOption < EducationLevel > | null ; return null ; } ;