import { registerBlockType } from "@wordpress/blocks";
import "./style.scss";
import metadata from "./block.json";

import Edit from "./edit";
import Save from "./save";

import { navigation } from "@wordpress/icons";

registerBlockType(metadata.name, {
	title: metadata.title,
	icon: {
		foreground: "#DF1E1E",
		src: (
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
				<path d="M8,7h8a1,1,0,0,1,1,1v8a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8A1,1,0,0,1,8,7Zm3-5V4h2V2Zm7,0H16V4h2ZM6,4H8V2H6ZM2,2V4L4,2ZM22,4V2H20ZM13,22V20H11v2Zm3,0h2V20H16ZM6,22H8V20H6Zm14-9h2V11H20Zm0,5h2V16H20ZM20,8h2V6H20ZM4,11H2v2H4Zm0,5H2v2H4ZM4,6H2V8H4ZM2,20v2H4Zm20,2V20l-2,2Z" />
			</svg>
		),
	},

	supports: metadata.supports,
	attributes: metadata.attributes,
	edit: Edit,
	save: Save,
});
