mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
Add user profile image
This commit is contained in:
@@ -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}`;
|
||||
};
|
||||
Reference in New Issue
Block a user