1 import * as React from 'react';
3 import { format as formatDate, fromUnixTime } from 'date-fns';
5 import { dateLocale } from '@proton/shared/lib/i18n';
7 interface Props extends React.HTMLAttributes<HTMLTimeElement> {
12 const DateTimeLEGACY = ({ value, format = 'PPp', ...rest }: Props) => {
13 return <time {...rest}>{formatDate(fromUnixTime(value), format, { locale: dateLocale })}</time>;
16 export default DateTimeLEGACY;