import React from 'react';
import { Form, Switch } from 'antd';

const RecommendManageView = () => {
  // 表单钩子
  const [formRefs] = Form.useForm();
  return (
    <>
      <div className='recommend-form' style={{ width: '90%' }}>
        <Form
          labelCol={{ span: 3 }}
          wrapperCol={{ offset: 1 }}
          form={formRefs}
          initialValues={{ show: 1, activityType: 1 }}
        >
          <Form.Item
            label='是否启用'
            name='status'
            rules={[{ required: true, message: '请选择是否启用' }]}
            valuePropName='checked'
          >
            <Switch />
          </Form.Item>
        </Form>
      </div>
    </>
  );
};

export default RecommendManageView;
