import * as React from 'react';
import IconFolderCollab from '../../icon/content/FolderShared32';
import IconFolderExternal from '../../icon/content/FolderExternal32';
import IconFolderPersonal from '../../icon/content/FolderPersonal32';

var FolderIcon = function FolderIcon(_ref) {
  var _ref$dimension = _ref.dimension,
      dimension = _ref$dimension === void 0 ? 32 : _ref$dimension,
      _ref$isCollab = _ref.isCollab,
      isCollab = _ref$isCollab === void 0 ? false : _ref$isCollab,
      _ref$isExternal = _ref.isExternal,
      isExternal = _ref$isExternal === void 0 ? false : _ref$isExternal,
      title = _ref.title;

  if (isExternal) {
    return /*#__PURE__*/React.createElement(IconFolderExternal, {
      height: dimension,
      title: title,
      width: dimension
    });
  }

  if (isCollab) {
    return /*#__PURE__*/React.createElement(IconFolderCollab, {
      height: dimension,
      title: title,
      width: dimension
    });
  }

  return /*#__PURE__*/React.createElement(IconFolderPersonal, {
    height: dimension,
    title: title,
    width: dimension
  });
};

export default FolderIcon;
//# sourceMappingURL=FolderIcon.js.map