TimestampCell.tsx 420 B

123456789101112
  1. import { CellContext } from '@tanstack/react-table';
  2. import { formatTimestamp } from 'lib/dateTimeHelpers';
  3. import React from 'react';
  4. import * as S from './Table.styled';
  5. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  6. const TimestampCell: React.FC<CellContext<any, unknown>> = ({ getValue }) => (
  7. <S.Nowrap>{formatTimestamp(getValue<string | number>())}</S.Nowrap>
  8. );
  9. export default TimestampCell;