"use strict";

exports.__esModule = true;
exports.default = exports.TipIconButton = exports.TipButton = void 0;

var _react = _interopRequireDefault(require("react"));

var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));

var _Button = _interopRequireDefault(require("@material-ui/core/Button"));

var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const TipButton = p => {
  const {
    title,
    placement,
    ...props
  } = p;
  return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
    title: title || '',
    placement: placement || 'bottom'
  }, /*#__PURE__*/_react.default.createElement(_Button.default, props));
};

exports.TipButton = TipButton;

const TipIconButton = p => {
  const {
    title,
    placement,
    ...props
  } = p;
  return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
    title: title || '',
    placement: placement || 'bottom'
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, props));
};

exports.TipIconButton = TipIconButton;
var _default = TipButton;
exports.default = _default;