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">
            <rect x="3" y="4" width="18" height="17" rx="2" fill="none" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="3" y1="9" x2="21" y2="9" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="8" y1="2" x2="8" y2="5" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="16" y1="2" x2="16" y2="5" stroke="currentColor" strokeWidth="1.5"/>
            <line x1="7" y1="17" x2="17" y2="17" stroke="currentColor" strokeWidth="1.5"/>
            <path d="M7 14 Q12 11 17 14" fill="none" stroke="currentColor" strokeWidth="1.5"/>
        </svg>
    ),
    edit: Edit,
    save,
});