AniX/imageLoader.ts

5 lines
150 B
TypeScript

"use client";
export default function imageLoader({ src, width, quality }) {
return `https://wsrv.nl/?url=${src}&w=${width}&q=${quality || 75}`;
}