import { useRef } from "react" import { ObjectArrayEditorHandler, ObjectArrayEditor, ObjectArrayEditorProps } from "./ObjectArrayEditor" import { EditorProperties } from "@iplusplus/y-model" import { DraggableDialog } from "../ui-utils" type ObjectArrayEditorDialogProps = Omit & { onClose: (value?: Record[]) => void title?: string } export function ObjectArrayEditorDialog(props: ObjectArrayEditorDialogProps) { const { onClose, title,...editorPorps } = props; const handler = useRef(null) const handleCancel = () => { onClose() } const handleOk = () => { onClose(handler.current?.getData()) } return ( ) }