import { UntrustedSqlFragment } from '@supabase/pg-meta' import { Loader2 } from 'lucide-react' import { Badge, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import CodeEditor from '@/components/ui/CodeEditor/CodeEditor' export const InferredSQLViewer = ({ sql, isLoading = false, }: { sql: UntrustedSqlFragment | undefined isLoading?: boolean }) => { return ( <>

Inferred SQL:

{isLoading && }
Generated This query is inferred from client library code with the help of the Assistant and may not guarantee correctness.
{isLoading && !sql ? (
) : ( )}
) }