@@ -126,6 +126,7 @@ export default function ChatInput({
126126 const [ displayValue , setDisplayValue ] = useState ( initialValue ) ; // For immediate visual feedback
127127 const [ isFocused , setIsFocused ] = useState ( false ) ;
128128 const [ pastedImages , setPastedImages ] = useState < PastedImage [ ] > ( [ ] ) ;
129+ const [ isFilePickerOpen , setIsFilePickerOpen ] = useState ( false ) ;
129130
130131 // Derived state - chatState != Idle means we're in some form of loading state
131132 const isLoading = chatState !== ChatState . Idle ;
@@ -148,7 +149,6 @@ export default function ChatInput({
148149 const [ diagnosticsOpen , setDiagnosticsOpen ] = useState ( false ) ;
149150 const [ showCreateRecipeModal , setShowCreateRecipeModal ] = useState ( false ) ;
150151 const [ showEditRecipeModal , setShowEditRecipeModal ] = useState ( false ) ;
151- const [ isFilePickerOpen , setIsFilePickerOpen ] = useState ( false ) ;
152152 const [ sessionWorkingDir , setSessionWorkingDir ] = useState < string | null > ( null ) ;
153153
154154 useEffect ( ( ) => {
@@ -1190,13 +1190,11 @@ export default function ChatInput({
11901190
11911191 return (
11921192 < div
1193- className = { `flex flex-col relative h-auto p-4 transition-colors ${
1194- disableAnimation ? '' : 'page-transition'
1195- } ${
1196- isFocused
1193+ className = { `flex flex-col relative h-auto p-4 transition-colors ${ disableAnimation ? '' : 'page-transition'
1194+ } ${ isFocused
11971195 ? 'border-border-strong hover:border-border-strong'
11981196 : 'border-border-default hover:border-border-default'
1199- } bg-background-default z-10 rounded-t-2xl`}
1197+ } bg-background-default z-10 rounded-t-2xl`}
12001198 data-drop-zone = "true"
12011199 onDrop = { handleLocalDrop }
12021200 onDragOver = { handleLocalDragOver }
@@ -1265,7 +1263,7 @@ export default function ChatInput({
12651263 size = "sm"
12661264 shape = "round"
12671265 variant = "outline"
1268- onClick = { ( ) => { } }
1266+ onClick = { ( ) => { } }
12691267 disabled = { true }
12701268 className = "bg-slate-600 text-white cursor-not-allowed opacity-50 border-slate-600 rounded-full px-6 py-2"
12711269 >
@@ -1312,13 +1310,12 @@ export default function ChatInput({
13121310 }
13131311 } }
13141312 disabled = { isTranscribing }
1315- className = { `rounded-full px-6 py-2 ${
1316- isRecording
1317- ? 'bg-red-500 text-white hover:bg-red-600 border-red-500'
1318- : isTranscribing
1319- ? 'bg-slate-600 text-white cursor-not-allowed animate-pulse border-slate-600'
1320- : 'bg-slate-600 text-white hover:bg-slate-700 border-slate-600'
1321- } `}
1313+ className = { `rounded-full px-6 py-2 ${ isRecording
1314+ ? 'bg-red-500 text-white hover:bg-red-600 border-red-500'
1315+ : isTranscribing
1316+ ? 'bg-slate-600 text-white cursor-not-allowed animate-pulse border-slate-600'
1317+ : 'bg-slate-600 text-white hover:bg-slate-700 border-slate-600'
1318+ } `}
13221319 >
13231320 < Microphone />
13241321 </ Button >
@@ -1356,11 +1353,10 @@ export default function ChatInput({
13561353 shape = "round"
13571354 variant = "outline"
13581355 disabled = { isSubmitButtonDisabled }
1359- className = { `rounded-full px-10 py-2 flex items-center gap-2 ${
1360- isSubmitButtonDisabled
1361- ? 'bg-slate-600 text-white cursor-not-allowed opacity-50 border-slate-600'
1362- : 'bg-slate-600 text-white hover:bg-slate-700 border-slate-600 hover:cursor-pointer'
1363- } `}
1356+ className = { `rounded-full px-10 py-2 flex items-center gap-2 ${ isSubmitButtonDisabled
1357+ ? 'bg-slate-600 text-white cursor-not-allowed opacity-50 border-slate-600'
1358+ : 'bg-slate-600 text-white hover:bg-slate-700 border-slate-600 hover:cursor-pointer'
1359+ } `}
13641360 >
13651361 < Send className = "w-4 h-4" />
13661362 < span className = "text-sm" > Send</ span >
0 commit comments