// tmp-babel/__shared__/web/Timestamp/index.js
import { DATE_FORMAT, TIME_FORMAT, formatDate } from "@baseapp-frontend/utils";
import { Typography } from "@mui/material";
import { DateTime } from "luxon";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var Timestamp = function Timestamp2(_ref) {
  var date = _ref.date;
  var dateTime = DateTime.fromISO(date);
  var isToday = dateTime.hasSame(DateTime.now(), "day");
  return /* @__PURE__ */ _jsxs(Typography, {
    variant: "caption",
    color: "text.secondary",
    display: "flex",
    alignItems: "center",
    children: [isToday ? "Today" : formatDate(dateTime, {
      toFormat: TIME_FORMAT[3]
    }), /* @__PURE__ */ _jsx("div", {
      className: "mx-2 inline-block h-1 w-1 rounded-full bg-text-disabled"
    }), formatDate(dateTime, {
      toFormat: DATE_FORMAT[2]
    })]
  });
};
var Timestamp_default = Timestamp;

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