import { Component, Input } from '@angular/core';
import { ModalController, IonicModule } from '@ionic/angular';
import { CommonModule } from '@angular/common';
import { CloudObject } from 'src/lib/ncloud';

@Component({
  selector: 'app-detail-modal',
  templateUrl: './detail-modal.component.html',
  styleUrls: ['./detail-modal.component.scss'],
  standalone: true,
  imports: [
    IonicModule,
    CommonModule
  ]
})
export class DetailModalComponent {
  @Input() product: CloudObject | undefined;

  constructor(private modalCtrl: ModalController) {}

  // 关闭模态窗口
  dismiss() {
    this.modalCtrl.dismiss();
  }
}