6e51cb7d16
- Updated comments in various components, schemas, and repositories to remove references to original Dart files. - Ensured consistency in documentation while maintaining the context of the code.
22 lines
423 B
TypeScript
22 lines
423 B
TypeScript
"use client";
|
||
/**
|
||
* DateHeader 日期分隔条
|
||
*
|
||
*
|
||
*
|
||
* 视觉:居中灰色 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>
|
||
);
|
||
}
|