import { Component } from '@angular/core'; import { NgFor } from '@angular/common'; import { CdkDrag, CdkDropList } from '@angular/cdk/drag-drop'; import { MatIconModule } from '@angular/material/icon'; import { MatListModule } from '@angular/material/list'; import { ComponentType, getComponentLabel, getComponentIcon } from '../../core/models/component'; import { BuilderStateService } from '../services/builder-state.service'; const CATEGORIES: { label: string; types: ComponentType[] }[] = [ { label: 'Content', types: ['HEADING', 'TEXT', 'DIVIDER'], }, { label: 'Media', types: ['IMAGE', 'GALLERY', 'VIDEO'], }, { label: 'Interactive', types: ['BUTTON', 'CONTACT_FORM', 'MAP'], }, { label: 'Advanced', types: ['CUSTOM_HTML'], }, ]; @Component({ selector: 'app-component-palette', standalone: true, imports: [NgFor, CdkDropList, CdkDrag, MatIconModule, MatListModule], template: `
{{ cat.label }}