export function idValidator(props, propName, componentName) {
  if (props.label && !props[propName]) {
    return new Error(`Invalid prop ${propName} supplied to ${componentName}: inputs with labels must have a unique ${propName}`);
  }
}