Add user profile image

This commit is contained in:
jeffvli
2022-11-13 20:18:23 -08:00
parent 14c22c63a0
commit 1babcc40ee
19 changed files with 1457 additions and 118 deletions
+6
View File
@@ -0,0 +1,6 @@
import { ServerFile } from '@/renderer/api/types';
export const getFileUrl = (serverUrl: string, file: ServerFile | null) => {
if (!file) return undefined;
return `${serverUrl}/${file.path}`;
};