'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var icons = require('@transferwise/icons');
var clsx = require('clsx');
require('react');
var Body = require('../body/Body.js');
require('../common/theme.js');
require('../common/direction.js');
require('@transferwise/neptune-tokens');
require('../common/propsValues/control.js');
require('../common/propsValues/size.js');
var typography = require('../common/propsValues/typography.js');
require('../common/propsValues/width.js');
require('../common/propsValues/type.js');
require('../common/propsValues/dateMode.js');
require('../common/propsValues/monthFormat.js');
require('../common/propsValues/position.js');
require('../common/propsValues/layouts.js');
require('../common/propsValues/status.js');
require('../common/propsValues/sentiment.js');
require('../common/propsValues/profileType.js');
require('../common/propsValues/variant.js');
require('../common/propsValues/scroll.js');
require('../common/propsValues/markdownNodeType.js');
require('../common/fileType.js');
require('@transferwise/formatting');
require('react-intl');
require('../common/closeButton/CloseButton.messages.js');
var jsxRuntime = require('react/jsx-runtime');

const TableStatusText = ({
  text,
  className,
  status,
  typography: typography$1 = 'default'
}) => {
  const typographyType = status ?? typography$1 === 'default-bold' ? typography.Typography.BODY_DEFAULT_BOLD : typography.Typography.BODY_DEFAULT;
  return /*#__PURE__*/jsxRuntime.jsxs(Body.default, {
    type: typographyType,
    className: clsx.clsx(className, {
      'np-table-content--success': status === 'success',
      'np-table-content--error': status === 'error'
    }),
    children: [text, status === 'success' && /*#__PURE__*/jsxRuntime.jsx(icons.CheckCircle, {
      className: "tw-icon--status",
      "data-testid": "check-icon"
    }), status === 'error' && /*#__PURE__*/jsxRuntime.jsx(icons.AlertCircle, {
      className: "tw-icon--status",
      "data-testid": "alert-icon"
    })]
  });
};

exports.default = TableStatusText;
//# sourceMappingURL=TableStatusText.js.map
