mirror of https://github.com/usememos/memos
chore: update editor style (#456)
parent
db93710f85
commit
0809ec8c72
@ -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;
|
Loading…
Reference in New Issue