Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536'use client';
import { Modal } from '@mantine/core';import { DEFAULT_OVERLAY_PROPS } from '@/styles/overlays';import AddConnectionForm from '../addConnectionDrawer/AddConnectionForm';import { Suspense } from 'react';
interface Props { isOpen: boolean; onClose: () => void; sourceUrl?: string; targetUrl?: string;}
export default function AddConnectionModal(props: Props) { return ( <Modal opened={props.isOpen} onClose={props.onClose} title="New Connection" overlayProps={DEFAULT_OVERLAY_PROPS} size="md" centered onClick={(e) => e.stopPropagation()} > <Suspense> <AddConnectionForm onClose={props.onClose} sourceUrl={props.sourceUrl} targetUrl={props.targetUrl} /> </Suspense> </Modal> );}