Files
cozsweet-frontend-nextjs/src/app/chat/components/date-header.tsx
T

22 lines
484 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
/**
* DateHeader 日期分隔条
*
* 原始 Dart: lib/ui/chat/widgets/date_header.dart26 行)
*
* 视觉:居中灰色 chip"今天 14:32" / "昨天 09:15" / 具体日期)
*/
import styles from "./chat-area.module.css";
export interface DateHeaderProps {
date: string;
}
export function DateHeader({ date }: DateHeaderProps) {
return (
<div className={styles.dateHeader}>
<span className={styles.dateChip}>{date}</span>
</div>
);
}