mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 19:31:38 +00:00
23 lines
644 B
C#
23 lines
644 B
C#
using Microsoft.AspNetCore.Components;
|
|
using AIStudio.Components;
|
|
|
|
namespace AIStudio.Dialogs;
|
|
|
|
public partial class PromptingGuidelineDialog : MSGComponentBase
|
|
{
|
|
[CascadingParameter]
|
|
private IMudDialogInstance MudDialog { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public string GuidelineMarkdown { get; set; } = string.Empty;
|
|
|
|
private void Close() => this.MudDialog.Cancel();
|
|
|
|
private CodeBlockTheme CodeColorPalette => this.SettingsManager.IsDarkMode ? CodeBlockTheme.Dark : CodeBlockTheme.Default;
|
|
|
|
private MudMarkdownStyling MarkdownStyling => new()
|
|
{
|
|
CodeBlock = { Theme = this.CodeColorPalette },
|
|
};
|
|
}
|