/**
 * title: "默认"
 * description: ""
 */
import React from 'react';
import { Timeline } from '@alicloud/console-components';

const { Item: TimelineItem } = Timeline;

const dataSource = [
  {
    id: 1,
    title: '2024-08-08',
    state: 'process',
  },
  {
    id: 2,
    title: '2024-08-08',
    state: 'done',
  },
  {
    id: 3,
    title: '2024-08-08',
    state: 'done',
  },
  {
    id: 4,
    title: '2024-08-08',
    state: 'done',
  },
  {
    id: 5,
    title: '2024-08-08',
    state: 'done',
  },
] as const;

export default () => {
  return (
    <div>
      <Timeline>
        {
          dataSource.map((item) => {
            const { id, ...restProps } = item;

            return (
              <TimelineItem
                key={id}
                {...restProps}
              />
            );
          })
        }
      </Timeline>
    </div>
  );
};


