mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-02 13:29:41 +00:00
22 lines
503 B
Swift
22 lines
503 B
Swift
import DesignSystem
|
|
import Models
|
|
import SwiftUI
|
|
|
|
struct StatusRowTextView: View {
|
|
@EnvironmentObject private var theme: Theme
|
|
|
|
let status: AnyStatus
|
|
let viewModel: StatusRowViewModel
|
|
|
|
var body: some View {
|
|
HStack {
|
|
EmojiTextApp(status.content, emojis: status.emojis, language: status.language)
|
|
.font(.scaledBody)
|
|
.environment(\.openURL, OpenURLAction { url in
|
|
viewModel.routerPath.handleStatus(status: status, url: url)
|
|
})
|
|
Spacer()
|
|
}
|
|
}
|
|
}
|