import { Component, Output, EventEmitter } from '@angular/core'; import { CommonModule } from '@angular/common'; export interface BlockMenuAction { type: 'heading' | 'paragraph' | 'list' | 'numbered' | 'checkbox' | 'table' | 'code' | 'image' | 'file' | 'formula' | 'bookmark' | 'more'; } @Component({ selector: 'app-block-initial-menu', standalone: true, imports: [CommonModule], template: `
`, styles: [` :host { display: block; } `] }) export class BlockInitialMenuComponent { @Output() action = new EventEmitter(); onAction(type: BlockMenuAction['type']): void { this.action.emit({ type }); } }