import PropTypes from 'prop-types'
import MessageBubble from './MessageBubble'
function MessageList({ messages }) {
return (
{messages.map((m, i) => (
))}
)
}
MessageList.propTypes = {
messages: PropTypes.arrayOf(
PropTypes.shape({
role: PropTypes.string.isRequired,
content: PropTypes.string.isRequired,
})
).isRequired,
}
export default MessageList