import React from 'react';
var AuthComponent = function AuthComponent(Components, componentType, haveAuth) {
  return function (props) {
    try {
      if (haveAuth) {
        return /*#__PURE__*/React.createElement(Components, props);
      }
      return null;
    } catch (_unused) {
      return null;
    }
  };
};
export default AuthComponent;