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

@Component({
  selector: 'app-cute-progressbar',
  standalone: true,
  imports: [],
  templateUrl: './cute-progressbar.component.html',
  styleUrl: './cute-progressbar.component.css'
})
export class CuteProgressbarComponent {

  @Input() value: number = 0;
  @Input() max: number = 100;

  get width() {
    return Math.min(100, (this.value / this.max) * 100);
  }

}
