import { jsx as _jsx } from "react/jsx-runtime";
import { block } from "../../../utils/cn.js";
import { ChatDate } from "../../atoms/ChatDate/index.js";
const b = block('history');
/**
 * Date header component for grouping chats
 *
 * @returns React element
 */
export function DateHeaderItem({ date }) {
    return (_jsx("div", { className: b('date-header'), children: _jsx(ChatDate, { date: new Date(date), relative: true }) }));
}
//# sourceMappingURL=DateHeaderItem.js.map
