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 ( Show error 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} )} Close ) return ( } aria-label="Show error details" > Show Error {/* Error message */} Error {reason} {/* Solution if available */} {solution && ( Solution {solution} )} ) }
The following error occured during replication:
{solution}
{reason}