You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
501 B
26 lines
501 B
//
|
|
// ClubRowView.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 27/03/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ClubRowView: View {
|
|
let club: Club
|
|
|
|
var body: some View {
|
|
LabeledContent {
|
|
Image(systemName: club.isFavorite() ? "star.fill" : "star")
|
|
.foregroundStyle(club.isFavorite() ? .green : .logoRed)
|
|
} label: {
|
|
Text(club.name)
|
|
Text(club.acronym)
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ClubRowView(club: Club.mock())
|
|
}
|
|
|