@using Wave.Utilities
@using Wave.Data
@using System.Net

<!-- badge badge-info badge-warning badge-error badge-primary badge-secondary badge-neutral badge-accent -->
<a href="/category/@WebUtility.UrlEncode(Category.Name)" class="badge badge-@CategoryUtilities.GetCssClassPostfixForColor(Category.Color)" @attributes="AdditionalAttributes">
	@Category.Name
</a>

@code {
	[Parameter]
	public required Category Category { get; set; }
	[Parameter(CaptureUnmatchedValues = true)]
	public Dictionary<string, object>? AdditionalAttributes { get; set; }
	
}