@using SharpIDE.Application.Features.SolutionDiscovery
@using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence

<MudStack Style="height: 100%">
	<MudTreeView T="string" Dense="true" ExpandOnClick="true">
		@foreach (var project in SolutionModel.AllProjects)
		{
			<ProjectProblemComponent ProjectModel="@project" OnFileSelected="@OnFileSelected" />
		}
	</MudTreeView>
</MudStack>

@code {
	[Parameter, EditorRequired]
	public SharpIdeSolutionModel SolutionModel { get; set; } = null!;

	[Parameter]
	public EventCallback<SharpIdeFile> OnFileSelected { get; set; }
}
