/* Copyright 2026 Marimo. All rights reserved. */ import { AlertCircleIcon } from "lucide-react"; import type { CellId } from "@/core/cells/ids"; import { useSqlValidationErrorsForCell } from "@/core/codemirror/language/languages/sql/banner-validation-errors"; export const SqlValidationErrorBanner = ({ cellId, hide, }: { cellId: CellId; hide: boolean; }) => { const error = useSqlValidationErrorsForCell(cellId); if (!error || hide) { return; } return (

{error.errorType}:{" "} {error.errorMessage}

{error.codeblock && (
          {error.codeblock}
        
)}
); };