import { Component, EventEmitter, Input, Output } from '@angular/core';
import { CommonNzModule } from '../../common.nz.module';

@Component({
  selector: 'custom-drawer',
  standalone: true,
  imports: [CommonNzModule],
  templateUrl: './custom-drawer.component.html',
  styleUrl: './custom-drawer.component.less',
})
export class CustomDrawerComponent {
  @Input() width = 850;
  @Input() visible = false;
  @Input() title: string | null = '';

  @Output() onClose = new EventEmitter();

  close() {
    this.onClose.emit();
  }
}
