26 lines
545 B
Swift
26 lines
545 B
Swift
//
|
|
// PersonCell.swift
|
|
// LuminateUI
|
|
//
|
|
// Created by Brendan Szymanski on 6/5/26.
|
|
//
|
|
|
|
import Adwaita
|
|
import LuminateCore
|
|
|
|
struct PersonCell: View {
|
|
var person: Components.Schemas.BaseItemPerson
|
|
var view: Body {
|
|
VStack {
|
|
Avatar(showInitials: false, size: 60)
|
|
Text(person.name ?? "")
|
|
.caption()
|
|
if let role = person.role {
|
|
Text(role)
|
|
.caption()
|
|
.dimLabel()
|
|
}
|
|
}
|
|
.frame(minWidth: 100)
|
|
}
|
|
}
|