31 lines
858 B
Swift
31 lines
858 B
Swift
//
|
|
// OffererUserInfos.swift
|
|
// AlloVictor
|
|
//
|
|
// Created by Bodinaud Victor on 18/04/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct OffererUserInfos: View {
|
|
let offererUser: OfferersUser
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
HStack {
|
|
AvatarView(avatarUrl: offererUser.avatarUrl, width: 65, height: 65)
|
|
VStack(alignment: .leading) {
|
|
Text(offererUser.displayName)
|
|
.medium(15)
|
|
Text(offererUser.headline)
|
|
.medium(12)
|
|
Text("\(offererUser.locationFormatted) - à \(offererUser.distanceFormatted)")
|
|
.light(12)
|
|
Text(offererUser.onlineLatestActivityAtFormatted)
|
|
.light(12)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|