'use strict';

var icons = require('@transferwise/icons');
var Body = require('../../../body/Body.js');
var Button = require('../../../button/Button.js');
var Title = require('../../../title/Title.js');
var jsxRuntime = require('react/jsx-runtime');
var typography = require('../../../common/propsValues/typography.js');

function CompleteStep({
  csButtonText,
  csSuccessText,
  fileName,
  isComplete,
  isImage,
  onClear,
  uploadedImage
}) {
  return /*#__PURE__*/jsxRuntime.jsx("div", {
    className: "droppable-complete-card droppable-card",
    "aria-hidden": !isComplete,
    children: /*#__PURE__*/jsxRuntime.jsxs("div", {
      className: "droppable-card-content",
      children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
        className: "droppable-card-content d-flex flex-column align-items-center",
        "aria-live": "polite",
        children: [isImage && uploadedImage ? /*#__PURE__*/jsxRuntime.jsx("img", {
          src: uploadedImage,
          alt: "OK",
          className: "thumbnail "
        }) : /*#__PURE__*/jsxRuntime.jsx(icons.Document, {}), fileName && /*#__PURE__*/jsxRuntime.jsx(Body, {
          as: "p",
          className: "m-b-0",
          children: fileName
        }), csSuccessText && /*#__PURE__*/jsxRuntime.jsx(Title, {
          className: "caption m-t-1",
          type: typography.Typography.TITLE_BODY,
          children: csSuccessText
        })]
      }), csButtonText && /*#__PURE__*/jsxRuntime.jsx(Button, {
        className: "m-t-1",
        onClick: onClear,
        children: csButtonText
      })]
    })
  });
}

module.exports = CompleteStep;
//# sourceMappingURL=completeStep.js.map
