function getDataParentComponent(componentInstance) {
  if (!componentInstance) {
    return;
  }
  const { parent } = componentInstance;
  if (parent && (parent.isInputComponent || parent.input)) {
    return parent;
  }
  else {
    return getDataParentComponent(parent);
  }
}
Returns a parent component of the passed component instance skipping all the Layout components
@param {Component} componentInstance - The component to check for the parent.
@returns {Component|undefined} - The parent data component.