mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
7 lines
200 B
TypeScript
7 lines
200 B
TypeScript
import { ServerFile } from '@/renderer/api/types';
|
|
|
|
export const getFileUrl = (serverUrl: string, file: ServerFile | null) => {
|
|
if (!file) return undefined;
|
|
return `${serverUrl}/${file.path}`;
|
|
};
|