"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _space = _interopRequireDefault(require("../space"));
require("./style");
var _jsxRuntime = require("react/jsx-runtime");
const WauSpace = ({
  direction = 'horizontal',
  children,
  style,
  size = 'middle',
  ...restProps
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_space.default, {
    size: size,
    direction: direction,
    style: {
      display: direction === 'vertical' ? 'flex' : 'inline-flex',
      ...style
    },
    ...restProps,
    children: children
  });
};
var _default = WauSpace;
exports.default = _default;