import React from 'react';
import { Card, Layout, Typography, Row, Col, Button } from 'antd';
import { FileTextOutlined, AlertOutlined, BarChartOutlined } from '@ant-design/icons';
import { Link } from 'umi';

const { Content } = Layout;
const { Title, Text } = Typography;

const OrderManagement: React.FC = () => {
  return (
    <Content style={{ padding: 24, margin: 0, minHeight: 280, background: '#fff' }}>
      <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 24 }}>
        <Title level={4}>订单管理</Title>
        <div>
          <Button icon={<FileTextOutlined />} style={{ marginRight: 8 }}>
            <Link to="/Orders/OrderList">订单列表</Link>
          </Button>
          <Button icon={<AlertOutlined />} style={{ marginRight: 8 }}>
            <Link to="/Orders/ExceptionOrder">异常订单</Link>
          </Button>
          <Button icon={<BarChartOutlined />}>
            <Link to="/Orders/OrderAggregation">订单统计</Link>
          </Button>
        </div>
      </div>
      
      <Row gutter={[16, 16]}>
        <Col span={24}>
          <Card title="订单概览">
            <Text>订单管理页面内容</Text>
          </Card>
        </Col>
      </Row>
    </Content>
  );
};

export default OrderManagement;