// Angular Core
import { Component, OnInit, Input } from '@angular/core';

// Third Party
import { NgbActiveModal, NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { ModalInterface } from 'src/app/interfaces/modal-interface';

@Component({
  standalone: false,
  selector: 'app-hundred-search-notify',
  templateUrl: './hundred-search-notify.component.html',
  styleUrls: ['./hundred-search-notify.component.scss']
})
export class HundredSearchNotifyComponent implements OnInit, ModalInterface {

  /**
   * Header for 100 search nitifiction message
   */
  hundredSearchNotification = {
    showHeader: true,
    title: 'Still searching? We can help you find what you need, faster'
  };

  modalComponent!: NgbModalRef;

  constructor(public activeModal: NgbActiveModal, public modalService: NgbModal) {}
  
  /**
   * Open current modal
   * @returns void
   */
  openModal(): void {
    this.modalComponent = this.modalService.open(HundredSearchNotifyComponent, {size: 'sm'})
  }

  /**
   * Close current modal
   * @returns void
   */
  closeModal(): void {
    this.modalService.dismissAll();
  }

  /**
   * Sets data required to display the modal if any.
   * @param data
   * @returns void
   */
  setData(data: any): void { }

  ngOnInit(): void {
  }

}
