"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ExpandButton = void 0;
var _react = _interopRequireDefault(require("react"));
var _index = require("../../../../index");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ExpandButton = exports.ExpandButton = function ExpandButton(_ref) {
  var expanded = _ref.expanded,
    disabled = _ref.disabled,
    onClick = _ref.onClick;
  return _react.default.createElement(_index.Button, {
    variant: "neutral",
    onClick: onClick,
    "aria-expanded": expanded,
    disabled: disabled
  }, expanded ? _react.default.createElement(_index.Icon.ChevronUp8, {
    color: function color(t) {
      return disabled ? t.color.disabled : t.color.text;
    }
  }) : _react.default.createElement(_index.Icon.ChevronDown8, {
    color: function color(t) {
      return disabled ? t.color.disabled : t.color.text;
    }
  }));
};