import React from "react";
import PropTypes from "prop-types";
import {
  DirectChatHeaderTitleContainer,
  HeaderTitleContent,
  MessageIcon,
} from "./DirectChatHeaderTitle.styled";
import { useTranslation } from "react-i18next";

const DirectChatHeaderTitle = () => {
  const { t } = useTranslation();
  return (
    <DirectChatHeaderTitleContainer>
      <MessageIcon />
      <HeaderTitleContent>{t("messages.headerTitle")}</HeaderTitleContent>
    </DirectChatHeaderTitleContainer>
  );
};

DirectChatHeaderTitle.propTypes = {
  children: PropTypes.node,
};

export default DirectChatHeaderTitle;
