import { Component, Input } from '@angular/core';
import { RouterModule } from '@angular/router';

import { IBreadcrumb } from '../../../interface/breadcrumb';
import { TitleCasePipe } from '../../../pipe/title-case.pipe';

@Component({
  selector: 'app-breadcrumb',
  imports: [RouterModule, TitleCasePipe],
  templateUrl: './breadcrumb.html',
  styleUrl: './breadcrumb.scss',
})
export class Breadcrumb {
  @Input() breadcrumb: IBreadcrumb | null;
}
