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 width="32" height="32" viewBox="0 0 32 32">
				<g>
					<path
						d="M21.15,10.59l-9.38,10.02"
						stroke="#136f63"
						fill="none"
						strokeWidth="3"
					/>
					<path
						d="M21.15,21.4v-10.81h-10.32"
						stroke="#136f63"
						fill="none"
						strokeWidth="3"
					/>
				</g>
				<circle
					cx="16"
					cy="16"
					r="15"
					stroke="#136f63"
					fill="none"
					strokeWidth="3"
				/>
			</svg>
		),
	},
	edit: Edit,
	save,
});
