24 lines
603 B
JavaScript
24 lines
603 B
JavaScript
import { Form } from "antd";
|
|
import React from "react";
|
|
import ConfigFormComponents from "../config-form-components/config-form-components.component";
|
|
|
|
export default function ShopCsiConfigForm({ selectedCsi }) {
|
|
const readOnly = !!selectedCsi;
|
|
const [form] = Form.useForm();
|
|
const handleFinish = (values) => {};
|
|
|
|
return (
|
|
<div>
|
|
{readOnly}
|
|
{selectedCsi && (
|
|
<Form form={form} onFinish={handleFinish}>
|
|
<ConfigFormComponents
|
|
readOnly={selectedCsi}
|
|
componentList={selectedCsi.config}
|
|
/>
|
|
</Form>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|