@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
57 lines (56 loc) • 2.78 kB
JavaScript
import { jsx as c } from "react/jsx-runtime";
import { c as e } from "../../createSvgIcon-B1E6Wo8z.js";
const t = e(/* @__PURE__ */ c("path", {
d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
}), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
}), "DescriptionOutlined"), s = e(/* @__PURE__ */ c("path", {
d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"
}), "InsertDriveFileOutlined"), d = e(/* @__PURE__ */ c("path", {
d: "M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"
}), "MovieOutlined"), a = e(/* @__PURE__ */ c("path", {
d: "M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"
}), "MusicNoteRounded"), o = e(/* @__PURE__ */ c("path", {
d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"
}), "OndemandVideoRounded"), r = e(/* @__PURE__ */ c("path", {
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
}), "PhotoOutlined"), i = e(/* @__PURE__ */ c("path", {
d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"
}), "PictureAsPdfOutlined"), V = ({ extension: h }) => {
switch (h.toUpperCase()) {
case "MP3":
case "MIDI":
case "WAV":
return /* @__PURE__ */ c(a, {});
case "JPG":
case "JPEG":
case "PNG":
case "SVG":
return /* @__PURE__ */ c(r, {});
case "MP4":
case "MOV":
case "AVI":
return /* @__PURE__ */ c(d, {});
case "CSV":
case "ODS":
case "XLS":
case "XLSX":
return /* @__PURE__ */ c(t, {});
case "PDF":
return /* @__PURE__ */ c(i, {});
case "ODT":
case "DOC":
case "DOCX":
case "TXT":
return /* @__PURE__ */ c(n, {});
case "ODP":
case "PPT":
case "PPTX":
return /* @__PURE__ */ c(o, {});
default:
return /* @__PURE__ */ c(s, {});
}
};
export {
V as FileIcon
};