Files
Wino-Mail/Wino.Core.Domain/Models/Calendar/CalendarContextMenuItem.cs
T
2026-04-08 23:48:17 +02:00

15 lines
431 B
C#

using System.Collections.Generic;
namespace Wino.Core.Domain.Models.Calendar;
public sealed record CalendarContextMenuItem(
CalendarContextMenuAction Action,
bool IsPrimary = false,
bool IsEnabled = true,
IReadOnlyList<CalendarContextMenuItem> ChildItems = null)
{
public IReadOnlyList<CalendarContextMenuItem> Children { get; init; } = ChildItems ?? [];
public bool HasChildren => Children.Count > 0;
}