@namespace AI.Platform.Web.Components.Pages.Account.Setting

<AntList 
    TItem="dynamic"
    ItemLayout="ListItemLayout.Horizontal"
    DataSource="_data">
    <ListItem  Actions="_actions">
        <ListItemMeta Avatar="" Description="@context.Description">
            <TitleTemplate>@context.Title</TitleTemplate>
        </ListItemMeta>
    </ListItem>
</AntList>

@code
{
    private static RenderFragment _switch = @<Switch CheckedChildren="@("Open")" UnCheckedChildren="@("Close")" Checked="true"/>;
    private readonly RenderFragment[] _actions = {_switch};
}