import React from 'react';
import styled from 'styled-components';
import { formatUtcToLocal } from '@bjsdistribution/dms-component-library';

function Date(props: any) {
  const data = props?.row?.original.created_at;
  return (
    <RowContainer>
      <Row>{`${formatUtcToLocal(data).date} @ ${
        formatUtcToLocal(data).time
      }`}</Row>
    </RowContainer>
  );
}

const RowContainer = styled.div``;

const Row = styled.div``;

export default Date;
