"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PrintButton = PrintButton;

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

var _icons = require("@material-ui/icons");

var _reactIntl = require("react-intl");

var _jsxRuntime = require("react/jsx-runtime");

function PrintButton() {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button["default"], {
    variant: "contained",
    startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Print, {}),
    onClick: function onClick() {
      return setTimeout(function () {
        return global.print();
      }, 0);
    },
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
      id: "ijpP3x",
      defaultMessage: [{
        "type": 0,
        "value": "Tulosta"
      }]
    })
  });
}
//# sourceMappingURL=PrintButton.cjs.map