"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _components = require("@wordpress/components");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

function InserterPanel({
  title,
  icon,
  children
}) {
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
      className: "block-editor-inserter__panel-header",
      children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
        className: "block-editor-inserter__panel-title",
        children: title
      }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Icon, {
        icon: icon
      })]
    }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
      className: "block-editor-inserter__panel-content",
      children: children
    })]
  });
}
var _default = exports.default = InserterPanel;
//# sourceMappingURL=panel.js.map