@wordpress/components
Version:
UI components for WordPress.
29 lines (27 loc) • 828 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = NavigationItemBaseContent;
var _navigationStyles = require("../styles/navigation-styles");
var _jsxRuntime = require("react/jsx-runtime");
/**
* Internal dependencies
*/
function NavigationItemBaseContent(props) {
const {
badge,
title
} = props;
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationStyles.ItemTitleUI, {
className: "components-navigation__item-title",
as: "span",
children: title
}), badge && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationStyles.ItemBadgeUI, {
className: "components-navigation__item-badge",
children: badge
})]
});
}
//# sourceMappingURL=base-content.js.map