// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import Visible from './native';
import React from 'react';
import { View } from 'remax/wechat';
export default (function (_ref) {
  var children = _ref.children,
      className = _ref.className,
      onHidden = _ref.onHidden,
      onVisible = _ref.onVisible,
      height = _ref.height,
      perf = _ref.perf;
  return /*#__PURE__*/React.createElement(Visible, {
    perf: perf,
    "class-name": className,
    bindvisible: onVisible,
    height: height,
    bindhidden: onHidden
  }, children || /*#__PURE__*/React.createElement(View, {
    style: {
      height: '1px',
      width: '1px'
    }
  }));
});