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

let nextTooltipId = 0;

@Component({
  selector: 'app-tooltip',
  templateUrl: './tooltip.component.html',
  styleUrl: './tooltip.component.scss',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class TooltipComponent {
  readonly message = input.required<string>();
  protected readonly tooltipId = `app-tooltip-${nextTooltipId++}`;
}
