silphius/app/react-components/dom/dialogues.jsx
2024-07-13 03:02:55 -05:00

20 lines
423 B
JavaScript

import styles from './dialogues.module.css';
import Dialogue from './dialogue.jsx';
export default function Dialogues({camera, dialogues, scale}) {
const elements = [];
for (const key in dialogues) {
elements.push(
<Dialogue
camera={camera}
dialogue={dialogues[key]}
key={key}
scale={scale}
/>
);
}
return <div className={styles.dialogues}>{elements}</div>;
}