@orfeas126/box-ui-elements
Version:
Box UI Elements
32 lines • 864 B
JavaScript
import * as React from 'react';
import IconFolderCollab from '../../icon/content/FolderShared32';
import IconFolderExternal from '../../icon/content/FolderExternal32';
import IconFolderPersonal from '../../icon/content/FolderPersonal32';
const FolderIcon = ({
dimension = 32,
isCollab = false,
isExternal = false,
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