import { Button, Space, Typography } from 'antd';
import React from 'react';
import { SalesTable } from '@/pages/trade/sales/list';
import CreateSalesModal from '../../components/createSalesModal';

const { Title } = Typography;
const SalesRefunds: React.FC<{ orderStatus?: number }> = (props) => {
  return (
    <>
      <Space align="center" style={{ marginBottom: 16 }} size={16}>
        <Title level={3} style={{ margin: 0 }}>
          售后与退款
        </Title>
        <CreateSalesModal />
      </Space>

      <SalesTable orderStatus={props?.orderStatus} />
    </>
  );
};

export default React.memo(SalesRefunds);
