import {Constants} from "../constants";
import {pathPosix} from "../util/pathName";
export const renderAssetsPreview = (pathString: string) => {
const type = pathPosix().extname(pathString).toLowerCase();
if (Constants.SIYUAN_ASSETS_IMAGE.includes(type)) {
return `
`;
} else if (Constants.SIYUAN_ASSETS_AUDIO.includes(type)) {
return ``;
} else if (Constants.SIYUAN_ASSETS_VIDEO.includes(type)) {
return ``;
} else {
return "";
}
};