import { Component, Output, EventEmitter } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ConsultationOrder } from '../consultation-order/consultation-order';

@Component({
  selector: 'app-create-project-modal',
  standalone: true,
  imports: [
    CommonModule,
    ConsultationOrder
  ],
  templateUrl: './create-project-modal.component.html',
  styleUrls: ['./create-project-modal.component.scss']
})
export class CreateProjectModalComponent {
  @Output() modalClosed = new EventEmitter<void>();
  @Output() projectCreated = new EventEmitter<any>();

  onClose(): void {
    this.modalClosed.emit();
  }

  onSave(): void {
    // 保存逻辑
  }

  onOrderCreated(orderData: any): void {
    this.projectCreated.emit(orderData);
  }
}