using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Components; using RpgRoller.Contracts; namespace RpgRoller.Components.Pages.HomeControls; [ExcludeFromCodeCoverage] public partial class SkillGroupBlock { [Parameter] public string Title { get; set; } = string.Empty; [Parameter] public Guid? SkillGroupId { get; set; } [Parameter] public IReadOnlyList Skills { get; set; } = []; [Parameter] public bool IsMutating { get; set; } [Parameter] public bool CanEditGroup { get; set; } [Parameter] public bool CanCreateSkill { get; set; } [Parameter] public bool HasSkillFilter { get; set; } [Parameter] public string EmptyMessage { get; set; } = "No skills in this group yet."; [Parameter] public bool ShowGroupActions { get; set; } [Parameter] public Func CanEditSkill { get; set; } = _ => false; [Parameter] public Func SkillDefinitionLabel { get; set; } = _ => string.Empty; [Parameter] public EventCallback AddSkillRequested { get; set; } [Parameter] public EventCallback EditSkillRequested { get; set; } [Parameter] public EventCallback RollSkillRequested { get; set; } [Parameter] public EventCallback DeleteSkillRequested { get; set; } [Parameter] public EventCallback EditGroupRequested { get; set; } [Parameter] public EventCallback DeleteGroupRequested { get; set; } }