File size: 343 Bytes
2f49513
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { ChatEntry } from "../../hooks/useChatHistory";
import "./index.css";

interface Props {
  entries: ChatEntry[];
}
export default function ChatHistory(props: Props) {
  return (
    <ul className="chat-history-entries">
      {props.entries.map((entry) => (
        <li key={Math.random()}>{entry.text}</li>
      ))}
    </ul>
  );
}