import { AudioIcon } from "./AudioIcon"; import { ImageIcon } from "./ImageIcon"; import { VideoIcon } from "./VideoIcon"; import { PdfIcon } from "./PdfIcon"; import { ExcelIcon } from "./ExcelIcon"; import { DocIcon } from "./DocIcon"; import { AnyFileIcon } from "./AnyFileIcon"; import React from "react"; type Props = { type: string; size?: number; }; export function WebFileIcon({ type, size = 24 }: Props) { if (type.startsWith("audio")) { return ; } if (type.startsWith("image")) { return ; } if (type.startsWith("video")) { return ; } switch (type) { case "application/pdf": { return ; } case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": case "application/vnd.ms-excel": { return ; } case "application/msdoc": { return ; } default: { return ; } } }