@wordpress/block-library
Version:
Block library for the WordPress editor.
34 lines (33 loc) • 1.12 kB
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_primitives = require("@wordpress/primitives");
let _wordpress_icons = require("@wordpress/icons");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/block-library/src/navigation/edit/overlay-menu-icon.jsx
function OverlayMenuIcon({ icon }) {
if (icon === "menu") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_icons.Icon, { icon: _wordpress_icons.menu });
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_wordpress_primitives.SVG, {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
width: "24",
height: "24",
"aria-hidden": "true",
focusable: "false",
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_primitives.Rect, {
x: "4",
y: "7.5",
width: "16",
height: "1.5"
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_primitives.Rect, {
x: "4",
y: "15",
width: "16",
height: "1.5"
})]
});
}
exports.default = OverlayMenuIcon;
//# sourceMappingURL=overlay-menu-icon.cjs.map