summaryrefslogtreecommitdiff
path: root/macos/Sources/Features/Terminal/ErrorView.swift
blob: 31078ac0467e9d0835cc50a555084a83bddb9827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import SwiftUI

struct ErrorView: View {
    var body: some View {
        HStack {
            Image("AppIconImage")
                .resizable()
                .scaledToFit()
                .frame(width: 128, height: 128)

            VStack(alignment: .leading) {
                Text("Oh, no. 😭").font(.title)
                Text("Something went fatally wrong.\nCheck the logs and restart Ghostty.")
            }
        }
        .padding()
    }
}

struct ErrorView_Previews: PreviewProvider {
    static var previews: some View {
        ErrorView()
    }
}