@wordpress/block-editor
Version:
23 lines (22 loc) • 619 B
JavaScript
// packages/block-editor/src/components/spacing-sizes-control/linked-button.js
import { Button } from "@wordpress/components";
import { link, linkOff } from "@wordpress/icons";
import { __ } from "@wordpress/i18n";
import { jsx } from "react/jsx-runtime";
function LinkedButton({ isLinked, ...props }) {
const label = isLinked ? __("Unlink sides") : __("Link sides");
return /* @__PURE__ */ jsx(
Button,
{
...props,
size: "small",
icon: isLinked ? link : linkOff,
iconSize: 24,
label
}
);
}
export {
LinkedButton as default
};
//# sourceMappingURL=linked-button.js.map