"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.InputLayoutAside = void 0;var _react = _interopRequireDefault(require("react"));



var _InputLayout = require("./InputLayout.styles");
var _InputLayoutAsideIcon = require("./InputLayoutAsideIcon");
var _InputLayoutAsideText = require("./InputLayoutAsideText");







var InputLayoutAside = exports.InputLayoutAside = function InputLayoutAside(_ref) {var icon = _ref.icon,text = _ref.text,side = _ref.side;
  var asideClassName = _InputLayout.stylesLayout.aside();

  var _icon = /*#__PURE__*/_react.default.createElement(_InputLayoutAsideIcon.InputLayoutAsideIcon, { key: "icon", icon: icon, side: side });
  var _text = /*#__PURE__*/_react.default.createElement(_InputLayoutAsideText.InputLayoutAsideText, { key: "text", text: text });

  var child = side === 'left' ? [_icon, _text] : [_text, _icon];

  return /*#__PURE__*/_react.default.createElement("span", { className: asideClassName }, child);
};