import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RouterLink } from '@angular/router';
import { LocaleSwitcher } from '../locale-switcher/locale-switcher';

/**
 * Thin full-width footer pinned to the bottom of the shell.
 *
 * v1 ships:
 *   - APF France handicap copyright with the current year.
 *   - Locale switcher (FR / EN) — per ADR-0019, hard-refreshes to
 *     the matching `/fr/...` or `/en/...` prefix.
 *   - Accessibility statement link — single i18n-marked link
 *     pointing to the canonical `/accessibility` path.
 *
 * The footer is reserved for cross-cutting page furniture. A
 * dev-only version badge lands here once `SERVICE_VERSION` is wired
 * to a build-time injection.
 */
@Component({
  selector: 'app-footer',
  imports: [RouterLink, LocaleSwitcher],
  templateUrl: './footer.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Footer {
  protected readonly year = new Date().getFullYear();
}
