mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 23:40:45 +00:00
19 lines
414 B
Swift
19 lines
414 B
Swift
import SwiftUI
|
|
|
|
struct MenuSessionsHeaderView: View {
|
|
let count: Int
|
|
let statusText: String?
|
|
|
|
var body: some View {
|
|
MenuHeaderCard(
|
|
title: "Context",
|
|
subtitle: self.subtitle,
|
|
statusText: self.statusText)
|
|
}
|
|
|
|
private var subtitle: String {
|
|
if self.count == 1 { return "1 session · 24h" }
|
|
return "\(self.count) sessions · 24h"
|
|
}
|
|
}
|