"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Resizer = Resizer;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _eui = require("@elastic/eui");
var _i18n = require("@kbn/i18n");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */

function Resizer(props) {
  return /*#__PURE__*/_react.default.createElement("button", (0, _extends2.default)({}, props, {
    "data-test-subj": "splitPanelResizer",
    "aria-label": _i18n.i18n.translate('console.splitPanel.adjustPanelSizeAriaLabel', {
      defaultMessage: 'Press left/right to adjust panels size'
    })
  }), /*#__PURE__*/_react.default.createElement(_eui.EuiIcon, {
    type: "grabHorizontal"
  }));
}