import BaseInfo from './components/baseInfo';
import StockSku from './components/stockSku';
import OtherInfo from './components/otherInfo';
import GoodsIntroduce from './components/goodsIntroduce';
import { useNavigate } from 'react-router-dom';
import './index.scss';
import { Button } from 'antd';
const RentDetail = () => {
  const navigate = useNavigate();
  //返回
  const backRoute = () => {
    navigate(-1);
  };
  return (
    <div className='rent-info'>
      <BaseInfo />
      <StockSku />
      <OtherInfo />
      <GoodsIntroduce />
      <div className='rent-info-operate'>
        <Button type='primary'>保存</Button>
        <Button onClick={backRoute}>返回</Button>
      </div>
    </div>
  );
};
export default RentDetail;
