2025-08-24 19:34:14 -05:00
|
|
|
@using System.Globalization
|
2025-12-30 18:08:20 -06:00
|
|
|
|
2025-09-06 13:09:47 -05:00
|
|
|
@namespace LANCommander.UI.Components
|
2025-08-24 19:34:14 -05:00
|
|
|
|
2025-12-30 18:08:20 -06:00
|
|
|
<Flex Class="chat-message-group" Gap="FlexGap.Small">
|
|
|
|
|
<SafeAvatar Username="@UserName" />
|
|
|
|
|
|
|
|
|
|
<Flex Direction="FlexDirection.Vertical">
|
|
|
|
|
<Flex Gap="FlexGap.Small">
|
|
|
|
|
<span class="chat-message-author">@UserName</span>
|
|
|
|
|
<span class="chat-message-timestamp">@StartedOn.ToString(CultureInfo.CurrentCulture)</span>
|
|
|
|
|
</Flex>
|
|
|
|
|
|
|
|
|
|
@ChildContent
|
|
|
|
|
</Flex>
|
|
|
|
|
</Flex>
|
2025-08-24 19:34:14 -05:00
|
|
|
|
|
|
|
|
@code {
|
2025-12-30 18:08:20 -06:00
|
|
|
[Parameter] public RenderFragment? ChildContent { get; set; }
|
2025-08-24 19:34:14 -05:00
|
|
|
[Parameter] public string UserName { get; set; }
|
|
|
|
|
[Parameter] public Guid UserId { get; set; }
|
|
|
|
|
[Parameter] public DateTime StartedOn { get; set; }
|
|
|
|
|
}
|