import { Button, cn, Dialog, DialogClose, DialogContent, DialogDescription, 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 {tableName} stopped replicating {/* No `language`: this is an error message reported by the destination, not code, so syntax highlighting would colour it at random. The code block is still the right frame, since it marks the text as machine output and carries a copy button for pasting into a support request. */} {solution &&

{solution}

}
) }