namespace Tornado3_2026Election.ViewModels;

public sealed class PreElectionWinnerHistoryCardViewModel
{
    public required string ElectionLabel { get; init; }

    public required string WinnerName { get; init; }

    public required string PartyName { get; init; }

    public string Note { get; init; } = string.Empty;

    public string DetailText => string.IsNullOrWhiteSpace(Note)
        ? PartyName
        : $"{PartyName} · {Note}";
}
