mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 17:08:38 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
18
apps/macos/Sources/OpenClaw/SettingsRefreshButton.swift
Normal file
18
apps/macos/Sources/OpenClaw/SettingsRefreshButton.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user