Files
bodyshop/client/src/components/shop-csi-config-form/shop-csi-config-form.component.jsx
2025-08-19 16:23:29 -04:00

22 lines
552 B
JavaScript

import { Form } from "antd";
import ConfigFormComponents from "../config-form-components/config-form-components.component";
export default function ShopCsiConfigForm({ selectedCsi }) {
const readOnly = !!selectedCsi;
const [form] = Form.useForm();
const handleFinish = () => {
// NO OP
};
return (
<div>
{readOnly}
{selectedCsi && (
<Form form={form} onFinish={handleFinish}>
<ConfigFormComponents readOnly={selectedCsi} componentList={selectedCsi.config} />
</Form>
)}
</div>
);
}