"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.Thumbnail = Thumbnail;
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _resolveFileByMediaType = require("./resolveFileByMediaType");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/FileCard/Thumbnail.tsx";
function Thumbnail({
  file,
  showDetails
}) {
  const {
    thumbnail
  } = (0, _resolveFileByMediaType.resolveFileByMediaType)(file, showDetails);
  return /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    dataHook: `file-thumbnail-${file.mediaType}-${file.mediaId}`,
    align: "center",
    verticalAlign: "middle",
    width: showDetails ? _resolveFileByMediaType.THUMB_WIDTH : _resolveFileByMediaType.SMALL_THUMB_WIDTH,
    height: showDetails ? _resolveFileByMediaType.THUMB_WIDTH : _resolveFileByMediaType.SMALL_THUMB_WIDTH,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 5
    }
  }, thumbnail);
}
//# sourceMappingURL=Thumbnail.js.map