import Link from 'next/link' import { CircleAlert, Database, Download, Wind } from 'lucide-react' import { Card, CardContent, CardHeader, CardTitle, Skeleton, Button } from 'ui' import { toast } from 'sonner' import DiffViewer from 'components/ui/DiffViewer' interface DatabaseDiffPanelProps { diffContent?: string isLoading: boolean error?: any showRefreshButton?: boolean currentBranchRef?: string } const DatabaseDiffPanel = ({ diffContent, isLoading, error, currentBranchRef, }: DatabaseDiffPanelProps) => { if (isLoading) return 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 ) } export default DatabaseDiffPanel