import { Component, OnInit, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
import { Task } from '../../defs';

@Component({
  selector: 'app-task-list',
  templateUrl: 'task-list.component.html',
  styleUrls: ['./task-list.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TaskListComponent implements OnInit {
  @Input()
  items: Task[];

  @Input()
  mode: 'overview' | 'details' = 'overview';

  @Input()
  showTaskCount = false;

  @Input()
  showFutureEvents = false;

  @Output()
  taskClick = new EventEmitter<Task>();

  constructor() {}

  ngOnInit() {}
}
