feat(chat): port chat widget components from Dart to React

This commit is contained in:
2026-06-09 20:19:52 +08:00
parent 199a14650e
commit 109a3e3855
48 changed files with 2463 additions and 382 deletions
+21
View File
@@ -0,0 +1,21 @@
"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>
);
}