@attribute [Route(Routes.CHAT)] @using AIStudio.Settings.DataModel @inherits MSGComponentBase
@if (this.chatThread is not null && this.chatThread.WorkspaceId != Guid.Empty) { @($"Chat in Workspace \"{this.currentWorkspaceName}\"") } else { @("Temporary Chat") } @if (this.AreWorkspacesVisible) { @if (this.SettingsManager.ConfigurationData.Workspace.DisplayBehavior is WorkspaceDisplayBehavior.TOGGLE_SIDEBAR && this.SettingsManager.ConfigurationData.Workspace.IsSidebarVisible) { // Case: Sidebar can be toggled and is currently visible } else { // Case: Sidebar is always visible } } else if (this.SettingsManager.ConfigurationData.Workspace.StorageBehavior is not WorkspaceStorageBehavior.DISABLE_WORKSPACES && this.SettingsManager.ConfigurationData.Workspace.DisplayBehavior is WorkspaceDisplayBehavior.TOGGLE_SIDEBAR) { // Case: Sidebar can be toggled and is currently hidden } else { // Case: Workspaces are disabled or shown in an overlay } @if ( this.SettingsManager.ConfigurationData.Workspace.StorageBehavior != WorkspaceStorageBehavior.DISABLE_WORKSPACES && this.SettingsManager.ConfigurationData.Workspace.DisplayBehavior is WorkspaceDisplayBehavior.TOGGLE_OVERLAY) { Your workspaces }