Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update components/editor/ask-ai/index.tsx
Browse files
components/editor/ask-ai/index.tsx
CHANGED
@@ -296,7 +296,7 @@ export function AskAI({
|
|
296 |
}}
|
297 |
>
|
298 |
<p className="text-sm font-medium text-neutral-300 group-hover:text-neutral-200 transition-colors duration-200">
|
299 |
-
{isThinking ? "
|
300 |
</p>
|
301 |
<ChevronDown
|
302 |
className={classNames(
|
@@ -362,10 +362,10 @@ export function AskAI({
|
|
362 |
)}
|
363 |
placeholder={
|
364 |
selectedElement
|
365 |
-
? `Ask
|
366 |
: hasAsked
|
367 |
-
? "Ask
|
368 |
-
: "Ask
|
369 |
}
|
370 |
value={prompt}
|
371 |
onChange={(e) => setPrompt(e.target.value)}
|
@@ -401,7 +401,7 @@ export function AskAI({
|
|
401 |
align="start"
|
402 |
className="bg-neutral-950 text-xs text-neutral-200 py-1 px-2 rounded-md -translate-y-0.5"
|
403 |
>
|
404 |
-
Select an element on the page to ask
|
405 |
directly.
|
406 |
</TooltipContent>
|
407 |
</Tooltip>
|
|
|
296 |
}}
|
297 |
>
|
298 |
<p className="text-sm font-medium text-neutral-300 group-hover:text-neutral-200 transition-colors duration-200">
|
299 |
+
{isThinking ? "KAICoder is thinking..." : "KAICoders's plan"}
|
300 |
</p>
|
301 |
<ChevronDown
|
302 |
className={classNames(
|
|
|
362 |
)}
|
363 |
placeholder={
|
364 |
selectedElement
|
365 |
+
? `Ask KAICoder about ${selectedElement.tagName.toLowerCase()}...`
|
366 |
: hasAsked
|
367 |
+
? "Ask KAICoder for edits"
|
368 |
+
: "Ask KAICoder anything..."
|
369 |
}
|
370 |
value={prompt}
|
371 |
onChange={(e) => setPrompt(e.target.value)}
|
|
|
401 |
align="start"
|
402 |
className="bg-neutral-950 text-xs text-neutral-200 py-1 px-2 rounded-md -translate-y-0.5"
|
403 |
>
|
404 |
+
Select an element on the page to ask KAICoder edit it
|
405 |
directly.
|
406 |
</TooltipContent>
|
407 |
</Tooltip>
|