20 lines
No EOL
575 B
Text
20 lines
No EOL
575 B
Text
@* ReSharper disable once RedundantUsingDirective *@
|
|
@using Iceshrimp.Frontend.Components.Note
|
|
@using Iceshrimp.Shared.Schemas.Web
|
|
@inject NavigationManager Navigation
|
|
@if (Note.Filtered is { Hide: true }) { }
|
|
else
|
|
{
|
|
<div class="note-container" @onclick="OpenNote" id="@Note.Id">
|
|
<Note NoteResponse="Note"></Note>
|
|
</div>
|
|
}
|
|
|
|
@code {
|
|
[Parameter] [EditorRequired] public required NoteResponse Note { get; set; }
|
|
|
|
private void OpenNote()
|
|
{
|
|
Navigation.NavigateTo(Note.RenoteId != null ? $"/notes/{Note.RenoteId}" : $"/notes/{Note.Id}");
|
|
}
|
|
} |