diff --git a/client/ui/App.jsx b/client/ui/App.jsx
index 64b36a5..a35ad92 100644
--- a/client/ui/App.jsx
+++ b/client/ui/App.jsx
@@ -1,5 +1,7 @@
export default function App() {
return (
-
+
+
+
)
}
diff --git a/client/ui/chat/ChatFragment.jsx b/client/ui/chat/ChatFragment.jsx
new file mode 100644
index 0000000..e92ea04
--- /dev/null
+++ b/client/ui/chat/ChatFragment.jsx
@@ -0,0 +1,3 @@
+export default function ChatFragment() {
+
+}
diff --git a/client/ui/chat/Message.jsx b/client/ui/chat/Message.jsx
new file mode 100644
index 0000000..6d85f33
--- /dev/null
+++ b/client/ui/chat/Message.jsx
@@ -0,0 +1,67 @@
+export default function Message({ direction = 'left', children }) {
+ return (
+
+
+ {
+ // 发送者昵称(左)
+ direction == 'left' &&
+ }
+ {
+ // 发送者头像
+ }
+
+
+ {
+ // 发送者昵称(右)
+ direction == 'right' &&
+
+ }
+
+
+ {
+ // 消息内容
+ children
+ }
+
+
+
+
+ )
+}
diff --git a/client/ui/chat/MessageContainer.jsx b/client/ui/chat/MessageContainer.jsx
new file mode 100644
index 0000000..afbf781
--- /dev/null
+++ b/client/ui/chat/MessageContainer.jsx
@@ -0,0 +1,14 @@
+export default function MessageContainer({ children }) {
+ return (
+
+ {children}
+
+ )
+}
\ No newline at end of file
diff --git a/client/ui/chat/SystemMessage.jsx b/client/ui/chat/SystemMessage.jsx
new file mode 100644
index 0000000..43f7f1a
--- /dev/null
+++ b/client/ui/chat/SystemMessage.jsx
@@ -0,0 +1,23 @@
+export default function SystemMessage({ children }) {
+ return (
+
+
+ {children}
+
+
+ )
+}