30 lines
804 B
JavaScript
30 lines
804 B
JavaScript
import { registerBlockType } from "@wordpress/blocks";
|
|
import "./style.scss";
|
|
|
|
import Edit from "./edit";
|
|
import save from "./save";
|
|
import metadata from "./block.json";
|
|
|
|
registerBlockType(metadata.name, {
|
|
icon: {
|
|
src: (
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
data-name="Layer 1"
|
|
viewBox="0 0 100 125"
|
|
x="0px"
|
|
y="0px"
|
|
>
|
|
<title>130all</title>
|
|
<path d="M31.34,16.75a9.19,9.19,0,1,0-11.69,8.83V41.13a9.18,9.18,0,0,0,0,17.67V74.34a9.19,9.19,0,1,0,5,0V58.79a9.18,9.18,0,0,0,0-17.67V25.59A9.2,9.2,0,0,0,31.34,16.75Z" />
|
|
<rect x="38.45" y="3.26" width="38.58" height="27.14" />
|
|
<rect x="38.45" y="36.39" width="48.58" height="27.14" />
|
|
<rect x="38.45" y="69.6" width="38.58" height="27.14" />
|
|
</svg>
|
|
),
|
|
foreground: "#DF1E1E",
|
|
},
|
|
edit: Edit,
|
|
save,
|
|
});
|