import { AlertCircle } from 'lucide-react' import { Button, cn, CodeBlock, Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader, DialogSection, DialogSectionSeparator, DialogTitle, DialogTrigger, Tooltip, TooltipContent, TooltipTrigger, } from 'ui' interface ErrorDetailsButtonProps { tableName: string reason: string solution?: string } export const ErrorDetailsButton = ({ tableName, reason, solution }: ErrorDetailsButtonProps) => { return ( Replication error on "{tableName}"

The following error occured during replication:

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

{solution}

)}
) return (
{/* Error message */}
Error
{reason}
{/* Solution if available */} {solution && (
Solution

{solution}

)}
) }