import PropTypes from 'prop-types'
import '../styles/chat.css'
function SessionList({ sessions, current }) {
return (
{sessions.map((name) => (
{name}
))}
)
}
SessionList.propTypes = {
sessions: PropTypes.arrayOf(PropTypes.string).isRequired,
current: PropTypes.string.isRequired,
}
export default SessionList