using Connected.Enums;

namespace Connected.Models.Modal;
public class ModalOptions
{
	public bool DisableEscKey { get; set; } = false;
	public bool DisableBackdropClick { get; set; } = false;
	public bool NoHeader { get; set; } = false;

	public ModalType Type { get; set; } = ModalType.Default;

	public ModalOptions()
	{ 
	}

	public ModalOptions(ModalOptions options)
	{
		DisableBackdropClick = options.DisableBackdropClick;
		NoHeader = options.NoHeader;
		DisableEscKey = options.DisableEscKey;
		Type = options.Type;
	}

	public ModalOptions(bool disableEscKey=false, bool disableBackdropClick=false, bool noHeader=false, ModalType type=ModalType.Default)
	{
		DisableEscKey = disableEscKey;
		DisableBackdropClick = disableBackdropClick;
		NoHeader = noHeader;
		Type = type;
	}
}
