import { Component } from '@angular/core';
import Documentation from '../../../assets/documentation.json';

@Component({
  selector: 'it-collapse-index',
  templateUrl: './collapse-index.component.html',
  styleUrls: ['./collapse-index.component.scss'],
})
export class CollapseIndexComponent {
  collapseComponent: any;
  accordionComponent: any;

  constructor() {
    this.collapseComponent = (<any>Documentation).components.find(component => component.name === 'ItCollapseComponent');
    this.accordionComponent = (<any>Documentation).components.find(component => component.name === 'ItAccordionComponent');
  }
}
