summaryrefslogtreecommitdiff
path: root/Jel/Views/Utility/ConsoleSheetView.swift
blob: a04731533c40b486cbb3ee0f9d7b718e48df7506 (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
25
26
27
28
29
30
31
32
33
34
35
//
//  ConsoleSheetView.swift
//  Jel
//
//  Created by zerocool on 12/12/23.
//

import SwiftUI
import PulseUI

struct ConsoleSheetView: View {
  @Binding var showingConsoleSheet: Bool
  
  var body: some View {
    NavigationStack {
      ConsoleView()
        .closeButtonHidden()
        .navigationTitle("Debug consoles")
        .toolbar {
          ToolbarItem {
            Button {
              showingConsoleSheet.toggle()
            } label: {
              Text("Done")
                .bold()
            }
          }
        }
    }
  }
}

#Preview {
  ConsoleSheetView(showingConsoleSheet: .constant(true))
}