import { CircleAlert, Database, Download, Loader2, Wind } from 'lucide-react' import Link from 'next/link' import { toast } from 'sonner' import { Button, Card, CardContent, CardHeader, CardTitle, Skeleton } from 'ui' import { DiffEditor } from '@/components/ui/DiffEditor' interface DatabaseDiffPanelProps { diffContent?: string isLoading: boolean error?: any showRefreshButton?: boolean currentBranchRef?: string } export const DatabaseDiffPanel = ({ diffContent, isLoading, error, currentBranchRef, }: DatabaseDiffPanelProps) => { if (isLoading) { return (
Loading database diff…
) } if (error) return (

Error loading branch diff

Please try again in a few minutes and contact support if the problem persists.

) if (!diffContent || diffContent.trim() === '') { return (

No changes detected between branches

Any changes to your database schema will be shown here for review

) } return ( Schema Changes
) }