import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
@Component({
selector: 'ngx-inline-example-block',
template: `
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NgxInlineExampleBlockComponent {
@Input() content;
get isOneFile(): boolean {
return !this.isTabbed;
}
get isTabbed(): boolean {
return this.content.files.length > 1;
}
}