import { DialogSectionSeparator, Separator } from 'ui' import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal' import { PotentialIssues } from './SQLEditor.types' interface RunQueryWarningModalProps { visible: boolean potentialIssues: PotentialIssues | undefined onCancel: () => void onConfirm: () => void } export const RunQueryWarningModal = ({ visible, potentialIssues, onCancel, onConfirm, }: RunQueryWarningModalProps) => { const { hasDestructiveOperations, hasUpdateWithoutWhere, hasAlterDatabasePreventConnection } = potentialIssues || {} return (

Please confirm that you would like to execute this query.

) }