"use strict";

import React from 'react';
import { CustomDivider } from './CustomDivider';
import { CustomMessageText } from '../styled/StyledComponents';
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
const MessageTranslations = ({
  message,
  langSource,
  config
}) => {
  return langSource && message.langSource ? /*#__PURE__*/_jsxs(_Fragment, {
    children: [/*#__PURE__*/_jsx(CustomDivider, {
      configColor: config?.colors?.primary
    }), /*#__PURE__*/_jsx(CustomMessageText, {
      colorUser: "",
      children: message.translations?.[langSource]?.translatedText
    })]
  }) : null;
};
export default MessageTranslations;
//# sourceMappingURL=MessageTranslations.js.map