'use strict';

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

var React = require('react');
var IconBlankCsvOutline = require('../../_Icon/Icons/IconBlankCsvOutline.js');
var IconBlankDocOutline = require('../../_Icon/Icons/IconBlankDocOutline.js');
var IconBlankOutline = require('../../_Icon/Icons/IconBlankOutline.js');
var IconBlankPdfOutline = require('../../_Icon/Icons/IconBlankPdfOutline.js');
var IconBlankTxtOutline = require('../../_Icon/Icons/IconBlankTxtOutline.js');
var IconBlankXlsOutline = require('../../_Icon/Icons/IconBlankXlsOutline.js');
var File_tokens = require('../File.tokens.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

var getFileIcon = function getFileIcon(extension, size) {
  var iconSize = size === 'xs' ? 'xs' : 's';
  switch (extension) {
    case 'pdf':
      return /*#__PURE__*/React__default.default.createElement(IconBlankPdfOutline.IconBlankPdfOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'doc':
      return /*#__PURE__*/React__default.default.createElement(IconBlankDocOutline.IconBlankDocOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'docx':
      return /*#__PURE__*/React__default.default.createElement(IconBlankDocOutline.IconBlankDocOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'xls':
      return /*#__PURE__*/React__default.default.createElement(IconBlankXlsOutline.IconBlankXlsOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'xlsx':
      return /*#__PURE__*/React__default.default.createElement(IconBlankXlsOutline.IconBlankXlsOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'txt':
      return /*#__PURE__*/React__default.default.createElement(IconBlankTxtOutline.IconBlankTxtOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    case 'csv':
      return /*#__PURE__*/React__default.default.createElement(IconBlankCsvOutline.IconBlankCsvOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
    default:
      return /*#__PURE__*/React__default.default.createElement(IconBlankOutline.IconBlankOutline, {
        size: iconSize,
        sizeCustomProperty: File_tokens.tokens.fileThumbSize,
        color: "inherit"
      });
  }
};

exports.getFileIcon = getFileIcon;
