chore: update editor style (#456)

This commit is contained in:
boojack
2022-11-12 21:22:51 +08:00
committed by GitHub
parent db93710f85
commit 0809ec8c72
14 changed files with 32 additions and 32 deletions

View File

@ -0,0 +1,19 @@
import Icon from "./Icon";
interface Props {
className: string;
resourceType: string;
}
const ResourceIcon = (props: Props) => {
const { className, resourceType } = props;
let ResourceIcon = Icon.FileText;
if (resourceType.includes("image")) {
ResourceIcon = Icon.Image;
}
return <ResourceIcon className={className} />;
};
export default ResourceIcon;