-
-
Notifications
You must be signed in to change notification settings - Fork 427
Expand file tree
/
Copy pathCodeiumChatTabItem.swift
More file actions
34 lines (28 loc) · 763 Bytes
/
CodeiumChatTabItem.swift
File metadata and controls
34 lines (28 loc) · 763 Bytes
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
import ComposableArchitecture
import Foundation
import Preferences
import SwiftUI
struct CodeiumChatTabItem: View {
@Perception.Bindable var store: StoreOf<CodeiumChatBrowser>
var body: some View {
WithPerceptionTracking {
Text(store.title)
.contextMenu {
CodeiumChatMenuItem(store: store)
}
}
}
}
struct CodeiumChatMenuItem: View {
@Perception.Bindable var store: StoreOf<CodeiumChatBrowser>
var body: some View {
WithPerceptionTracking {
Button("Load Active Workspace") {
store.send(.loadCurrentWorkspace)
}
Button("Reload") {
store.send(.reload)
}
}
}
}