import _extends from "@babel/runtime/helpers/extends";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children", "className", "fixed"];
import React from 'react';
import Box from '../box';
import cx from 'classnames';
import theme from './theme.css';

var Container = function Container(_ref) {
  var children = _ref.children,
      className = _ref.className,
      fixed = _ref.fixed,
      others = _objectWithoutProperties(_ref, _excluded);

  var classNames = cx(theme['container'], _defineProperty({}, theme['is-fixed'], fixed), className);
  return /*#__PURE__*/React.createElement(Box, _extends({}, others, {
    boxSizing: "content-box",
    className: classNames
  }), children);
};

export default Container;