import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-calculator',
  templateUrl: './calculator.component.html',
  styleUrls: ['./calculator.component.scss']
})
export class CalculatorComponent implements OnInit {

  currentInput: string = '0';
  firstOperand: number | null = null;
  operator: string | null = null;
  waitForSecondOperand: boolean = false;

  constructor() { }

  ngOnInit(): void {
  }

  // Placeholder methods for calculator logic
  appendNumber(num: string) {
    console.log('Append number:', num);
  }

  appendDecimal() {
    console.log('Append decimal');
  }

  setOperator(op: string) {
    console.log('Set operator:', op);
  }

  calculate() {
    console.log('Calculate');
  }

  clear() {
    console.log('Clear');
  }

}
