import useDateFormat from "../../../../hooks/useDateFormat/index.js";
import useFormattedTimestamp from './hooks/useFormattedTimestamp';
const Timestamp = function Timestamp(props) {
  const {
    timestamp
  } = props;
  const formatted = useDateFormat(timestamp);
  const time = useFormattedTimestamp(timestamp);
  return <div data-time={timestamp} title={formatted}>
      {time}
    </div>;
};
export default Timestamp;