import Edit from './edit';
import save from './save';
import metadata from './block.json';

import { registerBlockType } from '@wordpress/blocks';

registerBlockType(metadata.name, {
    icon: (
        <svg viewBox="0 0 24 24">
            <rect x="2" y="2" width="20" height="20" rx="2" fill="none" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="8.67" y1="2" x2="8.67" y2="22" stroke="currentColor" strokeWidth="1"/>
            <line x1="15.33" y1="2" x2="15.33" y2="22" stroke="currentColor" strokeWidth="1"/>
            <line x1="2" y1="8.67" x2="22" y2="8.67" stroke="currentColor" strokeWidth="1"/>
            <line x1="2" y1="15.33" x2="22" y2="15.33" stroke="currentColor" strokeWidth="1"/>
            <circle cx="5.33" cy="5.33" r="1" fill="currentColor"/>
            <circle cx="12" cy="12" r="1" fill="currentColor"/>
            <circle cx="18.67" cy="18.67" r="1" fill="currentColor"/>
        </svg>
    ),
    edit: Edit,
    save,
});