import React from 'react';
import { Col, Statistic, Row } from '@btri-ui/base';

export default () => {
  const { Countdown } = Statistic;
  const v1 = Date.now() + 1000 * 60 * 60 + 1000 * 60 * 30 + 1000 * 30;
  return (
    <>
      <Row automode>
        <Col span={12}>
          <Countdown title="倒计时" value={v1}></Countdown>
        </Col>
        <Col span={12}>
          <Countdown title="毫秒倒计时" value={v1} format="HH:mm:ss:SSS" />
        </Col>
        <Col span={12} style={{ marginTop: '16px' }}>
          <Countdown title="天倒计时" value={v1} format="D 天 H 时 m 分 s 秒" />
        </Col>
      </Row>
    </>
  );
};
