import * as React from 'react';
import { format } from 'date-fns';

export function DateTime({
  date,
  style,
}: {
  date: string;
  style?: Record<string, any>;
}) {
  return <kbd style={style}>{format(new Date(date), 'PPP')}</kbd>;
}
