import List from '..';
import React from 'react';
import ReactDOM from 'react-dom';
import { Avatar } from '../..';

ReactDOM.render(
  <div style={{ width: 288 }}>
    <List
      size="small"
      emptyContent={
        <div>
          <img
            style={{ width: '50%' }}
            src="https://img.alicdn.com/imgextra/i1/O1CN010qeEMD26UAA4hshcO_!!6000000007664-2-tps-78-66.png"
          />
          <br />
          暂无内容
        </div>
      }
      header={<div>Notifications</div>}
      dataSource={[]}
      renderItem={(item, i) => (
        <List.Item
          key={i}
          extra={item.money}
          title={item.title}
          media={<Avatar src={item.img} />}
        >
          List Item {i}
        </List.Item>
      )}
    />
  </div>,
  document.getElementById('list-demo-5'),
);
