/**
 * 查找引用字段配置面板适配器
 *
 * 将 field-system 定义的 FieldPanelProps 桥接到 LookupFieldConfigPanel 组件。
 * 创建和编辑场景共用同一个适配器。
 */
import React from 'react';
import { LookupFieldConfigPanel } from '../../../../../cn-ai-table/view/components/toolbar/components/add-field/lookup-field';
export const LookupFieldPanelAdapter = ({ fieldLabel, columnCode, initialValue, isEditStatus, context, onSave, onCancel, }) => {
    const initialConfig = initialValue ? JSON.parse(initialValue) : undefined;
    return (React.createElement(LookupFieldConfigPanel, { fieldLabel: fieldLabel, columnCode: columnCode, initialConfig: initialConfig, isEditStatus: isEditStatus, bizRequestConfig: context.bizRequestConfig, context: context, onSave: (config) => {
            onSave(config);
        }, onCancel: onCancel }));
};
