"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateHeaderItem = DateHeaderItem;
const jsx_runtime_1 = require("react/jsx-runtime");
const cn_1 = require("../../../utils/cn.js");
const ChatDate_1 = require("../../atoms/ChatDate/index.js");
const b = (0, cn_1.block)('history');
/**
 * Date header component for grouping chats
 *
 * @returns React element
 */
function DateHeaderItem({ date }) {
    return ((0, jsx_runtime_1.jsx)("div", { className: b('date-header'), children: (0, jsx_runtime_1.jsx)(ChatDate_1.ChatDate, { date: new Date(date), relative: true }) }));
}
//# sourceMappingURL=DateHeaderItem.js.map
