import { Button, cn, Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogSection, DialogSectionSeparator, DialogTitle, } from 'ui' import { CodeBlock } from 'ui-patterns/CodeBlock' interface ErrorDetailsDialogProps { open: boolean onOpenChange: (open: boolean) => void tableName: string reason: string solution?: string } export const ErrorDetailsDialog = ({ open, onOpenChange, tableName, reason, solution, }: ErrorDetailsDialogProps) => { return ( Replication error on {tableName}

The following error occurred during replication:

pre]:border-x-0 [&>pre]:rounded-none' )} language="bash" value={reason} className="[&_code]:text-xs [&_code]:text-foreground [&_span]:text-foreground!" /> {solution && (

{solution}

)}
) }