import { useState } from "react"
import { connect } from "react-redux"
import { actionAddComment } from "../actions"
const CommentInput = ({onPost}) => {
const [comment,setComment] = useState('')
return (
<>
setComment(e.target.value)} placeholder="Ваш коментарий" />
>
)
}
const CCommentInput = connect(null,{onPost: actionAddComment})(CommentInput)
export default CCommentInput