mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-10 01:09:29 +00:00
25 lines
626 B
Swift
25 lines
626 B
Swift
import DesignSystem
|
|
import SwiftUI
|
|
|
|
struct StatusRowReplyView: View {
|
|
let viewModel: StatusRowViewModel
|
|
|
|
var body: some View {
|
|
if let accountId = viewModel.status.inReplyToAccountId,
|
|
let mention = viewModel.status.mentions.first(where: { $0.id == accountId })
|
|
{
|
|
HStack(spacing: 2) {
|
|
Image(systemName: "arrowshape.turn.up.left.fill")
|
|
Text("status.row.was-reply")
|
|
Text(mention.username)
|
|
}
|
|
.font(.scaledFootnote)
|
|
.foregroundColor(.gray)
|
|
.fontWeight(.semibold)
|
|
.onTapGesture {
|
|
viewModel.navigateToMention(mention: mention)
|
|
}
|
|
}
|
|
}
|
|
}
|