diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx new file mode 100644 index 0000000..aff38fb --- /dev/null +++ b/client/ui/chat/ChatFragment.tsx @@ -0,0 +1,84 @@ +import { Tab } from "mdui" +import useEventListener from "../useEventListener.ts" +import Message from "./Message.jsx" +import MessageContainer from "./MessageContainer.jsx" + +import * as React from 'react' + +export default function ChatFragment({ ...props } = {}) { + const messageList = React.useState([]) + + const [tabItemSelected, setTabItemSelected] = React.useState('Chat') + const tabRef: React.MutableRefObject = React.useRef(null) + useEventListener(tabRef, 'change', (event) => { + setTabItemSelected((event.target as HTMLElement as Tab).value as string) + }) + + return ( +
+ + Title + 設定 + + +
+ 加載更多 +
+ + + { + // 输入框 + } +
+ + + +
+
+ + Work in progress... + +
+
+ ) +}