import { IInternalFormValues } from "./IFormValues" ; export default function validate ( values ) { const errors = { } ; if ( ! values . idp ) { errors . idp = "Required" ; } if ( ! values . idpId ) { errors . idpId = "Required" ; } if ( ! values . name ) { errors . name = "Required" ; } return errors ; }