import React from 'react'; import { Form, Input, Row, Col, Typography, Switch } from 'antd'; const { Text } = Typography; const BrandForm = ({ form, onValuesChange, isEdit = false, brandInfo = null, readOnly = false, }) => { const isActive = Form.useWatch('is_active', form) ?? true; React.useEffect(() => { if (brandInfo && brandInfo.brand_code) { form.setFieldsValue({ brand_code: brandInfo.brand_code }); } }, [brandInfo, form]); return (
{isActive ? 'Running' : 'Offline'}
); }; export default BrandForm;