wf4/app/utils/image.ts
webfussel 9642496e5a FIX: mpa, nuxt4 future, improvements in intro and services
Added mpa support, nuxt4 future compatibility, improvements in intro and services
2025-02-21 13:33:50 +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}` : ""}`;