Buckets:
| "use client"; | |
| import Image from "next/image"; | |
| interface ContentfulImageProps { | |
| src: string; | |
| width?: number; | |
| quality?: number; | |
| [key: string]: any; // For other props that might be passed | |
| } | |
| const contentfulLoader = ({ src, width, quality }: ContentfulImageProps) => { | |
| return `${src}?w=${width}&q=${quality || 75}`; | |
| }; | |
| export default function ContentfulImage(props: ContentfulImageProps) { | |
| return <Image alt={props.alt} loader={contentfulLoader} {...props} />; | |
| } | |
Xet Storage Details
- Size:
- 476 Bytes
- Xet hash:
- 3d05e41868261e7474980ed3757f175b8aa7e8245bf4be040fef9546ff8d72a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.