import { Button } from 'antd';
import { useNavigate } from 'react-router-dom';
import './index.scss';
import RichText from '~/components/richText';

const ServiceIntroduce = () => {
  const navigate = useNavigate();
  //返回
  const backRoute = () => {
    navigate(-1);
  };

  return (
    <div className='service-introduce'>
      <div className='service-introduce-operate'>
        <Button type='primary'>保存修改</Button>
        <Button type='primary' onClick={backRoute}>
          返回
        </Button>
      </div>
      <div className='service-introduce-title'></div>
      <div className='service-introduce-rich-text'>
        <RichText richTextHeight={500} />
      </div>
    </div>
  );
};
export default ServiceIntroduce;
