export const minLength = (minLength) => {
  return ({value}) => {
    let err = null
    if (!isEmptyValue(value) && value.length < minLength) {
      err = {error: Errors.minLength, params: {value, minLength}}