mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-08 00:21:23 +01:00
22 lines
489 B
TypeScript
22 lines
489 B
TypeScript
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
import type { Message } from "./data";
|
|
|
|
import "chatitem.less";
|
|
|
|
interface ChatItemProps {
|
|
message: Message;
|
|
}
|
|
|
|
const ChatItem = ({ message }: ChatItemProps) => {
|
|
const { text, timestamp } = message;
|
|
return (
|
|
<div className="chat-item">
|
|
<div className="chat-time">{timestamp}</div>
|
|
<div className="chat-text">{text}</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export { ChatItem };
|