@typeparam T
@namespace Connected.Components
@inherits ColumnBase
@if (Visible)
{
    @if (Mode == Rendermode.Header)
    {
        <Th>@HeaderText</Th>
    }
    else if (Mode is Rendermode.Item or Rendermode.Edit)
    {
        <Td><Avatar Size="Size.Small">@Value.ToString()</Avatar></Td>
    }
    else if (Mode == Rendermode.Footer)
    {
        <Td></Td>
    }
}

@code {

    [Parameter]
    public T Value { get; set; }
}
