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

20 lines
498 B
C#
Raw Normal View History

namespace AIStudio.Components.Blocks;
public class TreeItemData<T> : ITreeItem<T>
{
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 bool IsChat { get; init; }
public T? Value { get; init; }
public bool Expandable { get; init; } = true;
public HashSet<ITreeItem<T>> Children { get; } = [];
}