File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,24 @@ export const CommandPalette = () => {
174
174
/>
175
175
< div className = "flex justify-end space-x-2" >
176
176
< CopyButton text = { response } />
177
+ < button
178
+ type = "button"
179
+ className = { cn (
180
+ 'overflow-hidden rounded-full py-1 pl-2 pr-3 text-xs font-medium backdrop-blur transition hover:text-gray-high-contrast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-hover focus-visible:ring-offset-2 focus-visible:ring-offset-app'
181
+ ) }
182
+ onClick = { ( ) => {
183
+ setQuery ( response ) ;
184
+ setIsOpen ( false ) ;
185
+ } }
186
+ >
187
+ < span
188
+ className = { cn (
189
+ 'pointer-events-none flex items-center gap-1 transition duration-300'
190
+ ) }
191
+ >
192
+ Replace code ↵
193
+ </ span >
194
+ </ button >
177
195
< button
178
196
type = "button"
179
197
className = { cn (
@@ -189,7 +207,7 @@ export const CommandPalette = () => {
189
207
'pointer-events-none flex items-center gap-1 transition duration-300'
190
208
) }
191
209
>
192
- insert code ↵
210
+ Append result ↵
193
211
</ span >
194
212
</ button >
195
213
</ div >
You can’t perform that action at this time.
0 commit comments