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