blob: 5f57b7fd0be2860531c8717df8050020aba61e72 (
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._id.$oid} id={chatbubble._id.$oid} position={chatbubble.position} text={chatbubble.message}/>;
})}
</>);
}
|