import { PlusCircleFilled } from "@ant-design/icons"; import { Button, Form, Popover } from "antd"; import React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { openChatByPhone } from "../../redux/messaging/messaging.actions"; import PhoneFormItem, { PhoneItemFormatterValidation, } from "../form-items-formatted/phone-form-item.component"; const mapStateToProps = createStructuredSelector({ //currentUser: selectCurrentUser }); const mapDispatchToProps = (dispatch) => ({ openChatByPhone: (phone) => dispatch(openChatByPhone(phone)), }); export function ChatNewConversation({ openChatByPhone }) { const { t } = useTranslation(); const [form] = Form.useForm(); const handleFinish = (values) => { openChatByPhone({ phone_num: values.phoneNumber }); form.resetFields(); }; const popContent = (