@namespace Connected.Components
@using Connected.Extensions;
@using Connected.Utilities;

@if (!DisableToolbar)
{
    <ToolBar Class="@Classnames" Style="@Style">
        @ChildContent
    </ToolBar>
}


@code {
    protected string Classnames =>
    new CssBuilder("picker-toolbar")
      .AddClass($"theme-{Color.ToDescription()}")
      .AddClass("picker-toolbar-landscape", Orientation == Orientation.Landscape)
      .AddClass(Class)
    .Build();

    [Parameter] public string Class { get; set; }
    [Parameter] public string Style { get; set; }
    [Parameter] public bool DisableToolbar { get; set; }
    [Parameter] public Orientation Orientation { get; set; }
    [Parameter] public ThemeColor Color { get; set; }
    [Parameter] public RenderFragment ChildContent { get; set; }
}
