"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MobileView = exports.BrowserView = void 0;
var _isMobileSize = _interopRequireDefault(require("../../Helpers/isMobileSize"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/**
 *
 * @param {object} props
 * @returns {null|JSX} the component's children if the device is a mobile device, null otherwise
 */
var MobileView = exports.MobileView = function MobileView(props) {
  return (0, _isMobileSize["default"])() ? props.children : null;
};

/**
 *
 * @param {object} props
 * @returns {null|JSX} the component's children if the device is not a mobile device, null otherwise
 */
var BrowserView = exports.BrowserView = function BrowserView(props) {
  return (0, _isMobileSize["default"])() ? null : props.children;
};