import * as React from 'react';
import { Col, DatePicker, Row } from '@btri-ui/base';
import moment from 'moment';

export default () => {
  const onChange = e => {
    console.log(e);
  };
  const disabledDate = current => {
    // Can not select days before today and today
    return current && current < moment().endOf('day');
  };
  return (
    <>
      <Row autoMode={true}>
        <Col span={4}>
          <DatePicker onChange={onChange} disabledDate={disabledDate} />
        </Col>
      </Row>
    </>
  );
};
