Spaces:
Runtime error
Runtime error
File size: 308 Bytes
03e545a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import PropTypes from 'prop-types'
import '../styles/chat.css'
function MessageBubble({ role, content }) {
return <div className={`message ${role}`}>{content}</div>
}
MessageBubble.propTypes = {
role: PropTypes.string.isRequired,
content: PropTypes.string.isRequired,
}
export default MessageBubble
|