UI/Components/WalletContents.razor
@using Sandbox.UI;
@inherits Panel
@namespace PlanetMeat

<root>
	<div class="wallet hl-body" style="width: @(Currencies.Count * 150)px">
		@foreach (var id in Currencies)
		{
			@if (id == "meat_bounty")
			{
				<CurrencyDisplay AccountId="meat" Amount=@(Agenda.Current.MeatBounty) Prefix="+"></CurrencyDisplay>
			}
			else
			{
				<CurrencyDisplay AccountId=@id></CurrencyDisplay>
			}
		}
	</div>
</root>

@code
{
	public List<string> Currencies { get; set; } = [];

	protected override int BuildHash() => System.HashCode.Combine(Currencies.HashContents(), Agenda.Current.MeatBounty);
}