"use strict";

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

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

var _material = require("@mui/material");

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

const Link = props => {
  const {
    url,
    className
  } = props.contentState.getEntity(props.entityKey).getData();
  return /*#__PURE__*/_react.default.createElement(_material.Link, {
    href: url,
    className: `${className} editor-anchor`,
    target: "_blank"
  }, props.children);
};

var _default = Link;
exports.default = _default;