'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var css = require('../../../../utilities/css.js');
var Stack = require('../../Stack.scss.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

/** @deprecated Use LegacyStack or VerticalStack instead. */
function Item({
  children,
  fill
}) {
  if (process.env.NODE_ENV === 'development') {
    // eslint-disable-next-line no-console
    console.warn('Deprecation: <Stack /> is deprecated. This component will be removed in a future major version of Polaris. Use <LegacyStack /> or <VerticalStack /> instead.');
  }

  const className = css.classNames(Stack["default"].Item, fill && Stack["default"]['Item-fill']);
  return /*#__PURE__*/React__default["default"].createElement("div", {
    className: className
  }, children);
}

exports.Item = Item;
