mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-13 19:10:39 +00:00
19 lines
407 B
Swift
19 lines
407 B
Swift
import SwiftUI
|
|
|
|
struct SettingsRefreshButton: View {
|
|
let isLoading: Bool
|
|
let action: () -> Void
|
|
|
|
var body: some View {
|
|
if self.isLoading {
|
|
ProgressView()
|
|
} else {
|
|
Button(action: self.action) {
|
|
Label("Refresh", systemImage: "arrow.clockwise")
|
|
}
|
|
.buttonStyle(.bordered)
|
|
.help("Refresh")
|
|
}
|
|
}
|
|
}
|