import { FolderIcon, FolderIconType } from '@joplin/lib/services/database/types';
interface Props {
folderIcon: FolderIcon;
opacity?: number;
}
export default function(props: Props) {
const folderIcon = props.folderIcon;
const opacity = 'opacity' in props ? props.opacity : 1;
if (folderIcon.type === FolderIconType.Emoji) {
return {folderIcon.emoji};
} else if (folderIcon.type === FolderIconType.DataUrl) {
return ;
} else if (folderIcon.type === FolderIconType.FontAwesome) {
return ;
} else {
throw new Error(`Unsupported folder icon type: ${folderIcon.type}`);
}
}