@using salesbook.Shared.Components.Layout.Spinner
<MudOverlay Visible="VisibleOverlay" LightBackground="true">
    @if (SuccessAnimation)
    {
        <div class="success-checkmark">
            <div class="check-icon">
                <span class="icon-line line-tip"></span>
                <span class="icon-line line-long"></span>
                <div class="icon-circle"></div>
                <div class="icon-fix"></div>
            </div>
        </div>
    }
    else
    {
        <SpinnerLayout/>
    }
</MudOverlay>

@code {
    [Parameter] public required bool SuccessAnimation { get; set; }
    [Parameter] public required bool VisibleOverlay { get; set; }
}