'update'
This commit is contained in:
19
ipad_app/Sources/Views/Components/EmptyStateView.swift
Normal file
19
ipad_app/Sources/Views/Components/EmptyStateView.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user