import React from 'react';
import styled from 'styled-components';
import { formatDate } from '../../order-actions/utils';

function Date(props: any) {
  const data = props?.row?.original.date;
  return (
    <RowContainer>
      <Row>{formatDate(data)}</Row>
    </RowContainer>
  );
}

const RowContainer = styled.div``;

const Row = styled.div``;

export default Date;
