<div class="container">
  <div id="toggle-lang">C++</div>
  <div id="attempt">
    <span *ngIf="!isUpToDate">• </span>
    <span id="ideFileName">{{file.filename + file.language}}</span>
    <button (click)="inputField.setState(true);" id="inputBtn">Input</button>
    <button (click)="this.runField.isActive = true; this.runCodeService.run()" id="runBtn">Run Code</button>
    <button (click)="!isSaved ? this.saveField.setState(true) : updateFile();"
            [class.disabled]="isUploading || isUpToDate"
            id="saveBtn">{{isUploading ? "Saving File..." : "Save File"}}</button>
  </div>
  <label for="editor"></label>
  <textarea id="editor" name="editor" value="{{inp}}"></textarea>
</div>
<app-input (valueEmit)="updateInput($event)"></app-input>
<app-ide-compile [resultVal]="runCodeService.result" [statusVal]="runCodeService.runStatus"></app-ide-compile>
<app-save-file (savedFile)="isSaved = isUpToDate = true;" [file]="file"></app-save-file>
