Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

React import error, transition submit

Terry Sutton36a337c1e46c
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsx
index 4753ff46638..3c9b740a922 100644
--- a/packages/ui/src/components/Command/AiCommand.tsx
+++ b/packages/ui/src/components/Command/AiCommand.tsx
@@ -1,3 +1,4 @@
+import * as React from 'react'
import type {
ChatCompletionResponseMessage,
CreateChatCompletionResponse,
@@ -345,9 +346,13 @@ const AiCommand = () => {
actions={
<>
{!isLoading && !isResponding ? (
- <div className="flex items-center gap-3 mr-3">
- <span className="text-scale-1200">Submit message</span>
- <div className="hidden text-scale-1200 md:flex items-center justify-center h-6 w-6 rounded bg-scale-500">
+ <div
+ className={`flex items-center gap-3 mr-3 transition-opacity duration-700 ${
+ search ? 'opacity-100' : 'opacity-0'
+ }`}
+ >
+ <span className="text-scale-1100">Submit message</span>
+ <div className="hidden text-scale-1100 md:flex items-center justify-center h-6 w-6 rounded bg-scale-500">
<IconCornerDownLeft size={12} strokeWidth={1.5} />
</div>
</div>