@mantine/code-highlight
Version:
Code highlight with Mantine theme
18 lines (14 loc) • 495 B
JavaScript
'use client';
;
var jsxRuntime = require('react/jsx-runtime');
function FileIcon({ fileIcon, fileName, getFileIcon, className, style }) {
if (fileIcon) {
return /* @__PURE__ */ jsxRuntime.jsx("span", { className, style, children: fileIcon });
}
if (getFileIcon && fileName) {
return /* @__PURE__ */ jsxRuntime.jsx("span", { className, style, children: getFileIcon(fileName) });
}
return null;
}
exports.FileIcon = FileIcon;
//# sourceMappingURL=FileIcon.cjs.map