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

/** Atom: link. Internal router link; CIBG/Bootstrap styles bare anchors. */
@Component({
  selector: 'app-link',
  imports: [RouterLink],
  template: `<a [routerLink]="to()" class="link-primary"><ng-content /></a>`,
})
export class LinkComponent {
  to = input.required<string>();
}
