Files
Folo/apps/mobile/src/lib/img-proxy.ts
T

23 lines
539 B
TypeScript

import {
getImageProxyUrl as getImageProxyUrlUtils,
replaceImgUrlIfNeed as replaceImgUrlIfNeedUtils,
} from "@follow/utils/img-proxy"
export const getImageProxyUrl = (
params: Omit<Parameters<typeof getImageProxyUrlUtils>[0], "canUseProxy">,
) => {
return getImageProxyUrlUtils({
...params,
canUseProxy: true,
})
}
export const replaceImgUrlIfNeed = (
params: Omit<Parameters<typeof replaceImgUrlIfNeedUtils>[0], "canUseProxy">,
) => {
return replaceImgUrlIfNeedUtils({
...params,
canUseProxy: true,
})
}