@mantine/code-highlight
Version:
Code highlight with Mantine theme
16 lines (13 loc) • 444 B
JavaScript
'use client';
import { jsx } from 'react/jsx-runtime';
function FileIcon({ fileIcon, fileName, getFileIcon, className, style }) {
if (fileIcon) {
return /* @__PURE__ */ jsx("span", { className, style, children: fileIcon });
}
if (getFileIcon && fileName) {
return /* @__PURE__ */ jsx("span", { className, style, children: getFileIcon(fileName) });
}
return null;
}
export { FileIcon };
//# sourceMappingURL=FileIcon.mjs.map