import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { RemissionStartService } from '@isa/remission/shared/remission-start-dialog';
import { ButtonComponent } from '@isa/ui/buttons';

@Component({
  selector: 'remi-feature-remission-start-card',
  templateUrl: './remission-start-card.component.html',
  styleUrl: './remission-start-card.component.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
  imports: [ButtonComponent],
})
export class RemissionStartCardComponent {
  #remissionStartService = inject(RemissionStartService);

  async startRemission() {
    await this.#remissionStartService.startRemission(undefined);
  }
}
