UI/Inventory/InventoryPanel.razor
@using HC3.Inventory
@using Sandbox.UI

@namespace HC3.UI

<root>
    <div class="main">
		@if ( !Inventory.Items.Any() ) 
		{
			<label>Not carrying anything!</label>
		}

        @foreach ( var item in Inventory.Items )
        {
            <div class="item" tooltip="@item.Title">
                @if ( item.Icon.IsValid() )
                {
                    <Image [email protected] />
                }
            </div>
        }
    </div>
</root>

@code
{
    public Inventory Inventory { get; set; }
}