function getComponentPath(component) {
  return component.paths.localDataPath;
}
Returns a path to the component which based on its schema
@param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property
@returns {string} - Path to the component