Add New Chat Button
Nucleic-Session: BB7AA593-185A-4A8F-A3DA-598EE63874E2 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -9,6 +9,9 @@ struct StartChatComposer: View {
|
|||||||
/// start typing a new chat immediately. Consumed (reset to false) once handled, so it never
|
/// start typing a new chat immediately. Consumed (reset to false) once handled, so it never
|
||||||
/// steals focus on a later Home appearance. `.constant(false)` for the iPhone/compact path.
|
/// steals focus on a later Home appearance. `.constant(false)` for the iPhone/compact path.
|
||||||
var focusNewChat: Binding<Bool> = .constant(false)
|
var focusNewChat: Binding<Bool> = .constant(false)
|
||||||
|
/// Called after a chat is kicked off, so a host that presents the composer modally (e.g. the
|
||||||
|
/// Sessions tab's floating New-chat button) can dismiss itself. Home leaves it nil and stays put.
|
||||||
|
var onStart: (() -> Void)? = nil
|
||||||
@State private var projectID: ProjectID?
|
@State private var projectID: ProjectID?
|
||||||
@State private var draft = ""
|
@State private var draft = ""
|
||||||
@State private var auto = false
|
@State private var auto = false
|
||||||
|
|||||||
Reference in New Issue
Block a user