import { IHtmlEngineHelper , IHandlebarsOptions } from './html-engine-helper.interface' ; import * as _ from 'lodash' ; export class IsTabEnabledHelper implements IHtmlEngineHelper { public helperFunc ( context , tabs , tabId , options ) { let isTabEnabled = - 1 !== _ . findIndex ( tabs , { id : tabId } ) ; return isTabEnabled ? options . fn ( context ) : options . inverse ( context ) ; } }