// tmp-babel/messages/web/MessagesList/MessagesGroup/UserMessage/Timestamp/index.js
import { TIME_FORMAT, formatDate } from "@baseapp-frontend/utils";
import { Typography } from "@mui/material";
import { DateTime } from "luxon";
import { jsx as _jsx } from "react/jsx-runtime";
var Timestamp = function Timestamp2(_ref) {
  var date = _ref.date;
  var dateTime = DateTime.fromISO(date);
  return /* @__PURE__ */ _jsx(Typography, {
    variant: "overline",
    color: "text.secondary",
    display: "flex",
    alignItems: "center",
    paddingX: 1,
    paddingY: 1 / 2,
    children: formatDate(dateTime, {
      toFormat: TIME_FORMAT[2]
    })
  });
};
var Timestamp_default = Timestamp;

export {
  Timestamp_default
};
//# sourceMappingURL=chunk-YH4AI32S.mjs.map