mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-27 13:57:46 +00:00
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: 谨欣 <echo.cmy@antgroup.com> Co-authored-by: 严志勇 <yanzhiyong@tiansuixiansheng.com> Co-authored-by: yanzhiyong <932374019@qq.com>
14 lines
561 B
TypeScript
14 lines
561 B
TypeScript
import { FileTextFilled, FileWordTwoTone, IeCircleFilled, YuqueFilled } from '@ant-design/icons';
|
|
|
|
export default function DocIcon({ type }: { type: string }) {
|
|
if (type === 'TEXT') {
|
|
return <FileTextFilled className='text-[#2AA3FF] mr-2 !text-lg' />;
|
|
} else if (type === 'DOCUMENT') {
|
|
return <FileWordTwoTone className='text-[#2AA3FF] mr-2 !text-lg' />;
|
|
} else if (type === 'YUQUEURL') {
|
|
return <YuqueFilled className='text-[#2AA3FF] mr-2 !text-lg' />;
|
|
} else {
|
|
return <IeCircleFilled className='text-[#2AA3FF] mr-2 !text-lg' />;
|
|
}
|
|
}
|