24 lines
709 B
Swift
24 lines
709 B
Swift
// ── Timer List Section ─────────────────────────────────────────
|
|
|
|
import SwiftUI
|
|
|
|
struct TimerListSection: View {
|
|
let title: String
|
|
let timers: [CMTimer]
|
|
let now: Date
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading, spacing: CMSpacing.md) {
|
|
Text(title.uppercased())
|
|
.font(CMFonts.body(size: 11, weight: .bold))
|
|
.foregroundStyle(CMColors.textMuted)
|
|
.tracking(1.5)
|
|
.padding(.leading, CMSpacing.xs)
|
|
|
|
ForEach(timers) { timer in
|
|
TimerCard(timer: timer, now: now)
|
|
}
|
|
}
|
|
}
|
|
}
|