mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-03 22:33:07 +00:00
38 lines
599 B
TypeScript
38 lines
599 B
TypeScript
import React from 'react';
|
|
import Send from './Send';
|
|
|
|
interface Props {
|
|
lines: string[]
|
|
}
|
|
|
|
interface State {
|
|
}
|
|
|
|
|
|
export default class Room extends React.Component<Props, State> {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<Send />
|
|
<div className='room'>
|
|
{this.renderLines(this.props.lines)}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
renderLines(lines: string[]) {
|
|
|
|
const renderedLines = [];
|
|
for (const line of lines) {
|
|
renderedLines.push(<div className='room-row'>{line}</div>);
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
{renderedLines}
|
|
</div>
|
|
);
|
|
}
|
|
}
|