aboutsummaryrefslogtreecommitdiff
path: root/src/components/MessageBubble.js
blob: d64cf6ed1ed8667d5b709b79f1ec6ed422bc84cc (plain)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react';
import styles from './MessageBubble.module.css';

export default function MessageBubble({children, speaker, align, id}) {
  let className = ("left" === align) ? [styles.bln, styles.bleft].join(' ') : [styles.bln, styles.bright].join(' ');
  return (
    <div className={className} data-speaker={speaker} id={id}>
      {children}
    </div>
  );
}