20 lines
465 B
Swift
20 lines
465 B
Swift
#if os(iOS)
|
|
import SwiftUI
|
|
|
|
struct EmptyStateView: View {
|
|
let message: String
|
|
let actionTitle: String
|
|
let action: () -> Void
|
|
var body: some View {
|
|
VStack(spacing: 16) {
|
|
Image(systemName: "tray")
|
|
.font(.system(size: 48))
|
|
.foregroundColor(.secondary)
|
|
Text(message).foregroundColor(.secondary)
|
|
Button(actionTitle, action: action)
|
|
}
|
|
.padding(40)
|
|
}
|
|
}
|
|
#endif
|