mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-02 13:57:19 +02:00
7 lines
238 B
TypeScript
7 lines
238 B
TypeScript
|
|
import { apiBaseUrl } from 'librechat-data-provider';
|
||
|
|
|
||
|
|
export const buildShareLinkUrl = (shareId: string): string => {
|
||
|
|
const baseURL = apiBaseUrl();
|
||
|
|
return new URL(`${baseURL}/share/${shareId}`, window.location.origin).toString();
|
||
|
|
};
|