import Edit from './edit';
import save from './save';
import metadata from './block.json';
import { registerBlockType } from '@wordpress/blocks';

registerBlockType(metadata.name, {
    ...metadata,
    icon: (
        <svg viewBox="0 0 24 24">
            <circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" strokeWidth="1.5"/>
            <circle cx="12" cy="12" r="1.5" fill="currentColor"/>
            <line x1="12" y1="2" x2="12" y2="6" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="12" y1="18" x2="12" y2="22" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="2" y1="12" x2="6" y2="12" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="18" y1="12" x2="22" y2="12" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="5" y1="5" x2="8" y2="8" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="16" y1="16" x2="19" y2="19" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="5" y1="19" x2="8" y2="16" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="16" y1="8" x2="19" y2="5" stroke="currentColor" strokeWidth="1.5"/>
        </svg>
    ),
    edit: Edit,
    save,
});