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

registerBlockType(metadata.name, {
    ...metadata,
    icon: (
        <svg viewBox="0 0 24 24">
            {/* Calendar with star - professional weekly horoscope */}
            <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"/>
            {/* Star symbol for professional */}
            <polygon 
                points="12,12 13.5,15 17,15.5 14.5,17.5 15.5,21 12,18.5 8.5,21 9.5,17.5 7,15.5 10.5,15" 
                fill="none" 
                stroke="currentColor" 
                strokeWidth="1"
            />
        </svg>
    ),
    edit: Edit,
    save: () => null, // Dynamic block — content rendered in PHP
});
