AI-Studio/app/MindWork AI Studio/Components/Blocks/TreeItemData.cs

20 lines
520 B
C#

namespace AIStudio.Components.Blocks;
public class TreeItemData : ITreeItem
{
public WorkspaceBranch Branch { get; init; } = WorkspaceBranch.NONE;
public int Depth { get; init; }
public string Text { get; init; } = string.Empty;
public string Icon { get; init; } = string.Empty;
public TreeItemType Type { get; init; }
public string Path { get; init; } = string.Empty;
public bool Expandable { get; init; } = true;
public HashSet<ITreeItem> Children { get; init; } = [];
}