blob: d1bc454c3de99dc089367f687677a8e6fbbf7daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { useContext } from "react";
import ChatBubble from "./chatbubble";
import { AppContext } from "../App";
export default function Notes() {
const { messages } = useContext(AppContext);
return (<>
{messages.map((chatbubble) => {
return <ChatBubble key={chatbubble.message_id} id={chatbubble.message_id} position={chatbubble.position} text={chatbubble.message}/>;
})}
</>);
}
|