feat: file icon support doc and docx (#2289)

This commit is contained in:
Joel 2024-01-30 15:55:07 +08:00 • committed by GitHub
commit 6f7fd6613a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 71 additions and 27 deletions

View file

@ -1,6 +1,8 @@
import type { FC } from 'react'
import {
Csv,
Doc,
Docx,
Html,
Json,
Md,
@ -23,6 +25,10 @@ const FileIcon: FC<FileIconProps> = ({
switch (type) {
case 'csv':
return <Csv className={className} />
case 'doc':
return <Doc className={className} />
case 'docx':
return <Docx className={className} />
case 'htm':
case 'html':
return <Html className={className} />