wf4/utils/image.ts
webfussel 386211b24b FIX: firebase cache
Better caching policies
2025-02-02 00:44:49 +01:00

3 lines
159 B
TypeScript

export const getImage =
(path: string, img: string) => (size: "1x" | "2x" | "3x", set: boolean) =>
`${path}${img}@${size}.webp${set ? ` ${size}` : ""}`;