"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _nativeToutiao = _interopRequireDefault(require("./native-toutiao"));

var _react = _interopRequireDefault(require("react"));

var _toutiao = require("remax/toutiao");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/*
 * @Author: codingfly
 * @Description:
 * @Date: 2022-06-08 10:27:48
 * @LastEditTime: 2022-06-08 10:53:13
 * @FilePath: \remaxui\src\visible\index.toutiao.tsx
 */
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
var _default = function _default(_ref) {
  var children = _ref.children,
      className = _ref.className,
      onHidden = _ref.onHidden,
      onVisible = _ref.onVisible,
      height = _ref.height,
      perf = _ref.perf;
  return /*#__PURE__*/_react.default.createElement(_nativeToutiao.default, {
    perf: perf,
    "class-name": className,
    onVisible: onVisible,
    height: height,
    onHidden: onHidden
  }, children || /*#__PURE__*/_react.default.createElement(_toutiao.View, {
    style: {
      height: '1px',
      width: '1px'
    }
  }));
};

exports.default = _default;