mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-13 14:07:21 +00:00
18 lines
591 B
Plaintext
18 lines
591 B
Plaintext
@using AIStudio.Tools.PluginSystem
|
|
@inherits MSGComponentBase
|
|
|
|
@if (PluginLinks.TryParse(this.Url, out var link) && !PluginLinks.IsPlaceholder(this.Url))
|
|
{
|
|
if (PluginLinks.IsMail(link))
|
|
{
|
|
<MudTooltip Text="@T("Send a mail")">
|
|
<MudIconButton Icon="@AppIcons.EMAIL" Href="@link.AbsoluteUri" Target="_blank" Size="@this.Size"/>
|
|
</MudTooltip>
|
|
}
|
|
else
|
|
{
|
|
<MudTooltip Text="@T("Open website")">
|
|
<MudIconButton Icon="@AppIcons.OPEN_EXTERNAL" Href="@link.AbsoluteUri" Target="_blank" Size="@this.Size"/>
|
|
</MudTooltip>
|
|
}
|
|
} |