28 lines
520 B
Swift
28 lines
520 B
Swift
import SwiftUI
|
|
|
|
struct DevMenuActions: View {
|
|
let isDevLauncherInstalled: Bool
|
|
let onReload: () -> Void
|
|
let onGoHome: () -> Void
|
|
|
|
var body: some View {
|
|
HStack {
|
|
DevMenuActionButton(
|
|
title: "Reload",
|
|
icon: "arrow.clockwise",
|
|
action: onReload
|
|
)
|
|
.cornerRadius(18)
|
|
|
|
if isDevLauncherInstalled {
|
|
DevMenuActionButton(
|
|
title: "Go home",
|
|
icon: "house.fill",
|
|
action: onGoHome
|
|
)
|
|
.cornerRadius(18)
|
|
}
|
|
}
|
|
}
|
|
}
|