mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-14 22:13:09 +00:00
"Direct Message" can lead to confusion with "Direct Connection" that refers to low latency network connections.
31 lines
691 B
TypeScript
31 lines
691 B
TypeScript
import Messages, { Message } from './Messages';
|
|
import { Waku } from 'js-waku';
|
|
import SendMessage from './SendMessage';
|
|
import { makeStyles } from '@material-ui/core';
|
|
|
|
const useStyles = makeStyles({
|
|
root: {
|
|
display: 'flex',
|
|
alignItems: 'left',
|
|
flexDirection: 'column',
|
|
margin: '5px',
|
|
},
|
|
});
|
|
|
|
interface Props {
|
|
waku: Waku | undefined;
|
|
recipients: Map<string, Uint8Array>;
|
|
messages: Message[];
|
|
}
|
|
|
|
export default function Messaging({ waku, recipients, messages }: Props) {
|
|
const classes = useStyles();
|
|
|
|
return (
|
|
<div className={classes.root}>
|
|
<SendMessage recipients={recipients} waku={waku} />
|
|
<Messages messages={messages} />
|
|
</div>
|
|
);
|
|
}
|