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
parent 6d5b386394
commit 6f7fd6613a
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} />

View File

@@ -1,4 +1,6 @@
export { default as Csv } from './Csv'
export { default as Doc } from './Doc'
export { default as Docx } from './Docx'
export { default as Html } from './Html'
export { default as Json } from './Json'
export { default as Md } from './Md'