import { ImportSession } from '../service/import-service';
import { bindable, processContent } from 'aurelia-framework';

@processContent((compiler, resources, node, instruction) => {
  instruction.inheritBindingContext = true;
  return true;
})
export class ImportConfigLoader {
  @bindable
  public session: ImportSession;
  @bindable
  public configView: any;

  attached() {

  }
  bind() {
    const kebabCase = string => string
      .replace(/([a-z])([A-Z])/g, "$1-$2")
      .replace(/[\s_]+/g, '-')
      .toLowerCase();


    // if (this.session != null && this.session.config != null) {
    //   this.configView = `./${kebabCase(this.session.contextName)}-config.html`;
    // }
  }
}
