using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Components;

namespace TestDialogManager.Components
{
    public partial class FmDialog
    {
        [Parameter] public RenderFragment HeaderContent { get; set; }
        [Parameter] public RenderFragment BodyContent { get; set; }
        [Parameter] public RenderFragment FooterContent { get; set; }

        [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object> HeaderAttributes { get; set; }
        [Parameter] public Dictionary<string, object> BodyAttributes { get; set; }
        [Parameter] public Dictionary<string, object> FooterAttributes { get; set; }
        [Parameter] public Action OnOverlayClicked { get; set; }

        private void OverlayClicked()
        {
            OnOverlayClicked?.Invoke();
        }
    }
}

