This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { component$, useComputed$, useContext } from '@builder.io/qwik'; | |
| import { type ImageProps, getSizes, getSrcSet, ImageContext } from 'qwik-image'; | |
| import { webpImageTransformer$ } from '~/routes/layout'; | |
| /** | |
| * Custom image component that extends qwik-image in two ways: | |
| * | |
| * - Provides images both in webp and regular (fallback) format | |
| * - Wraps <img> and <source> in <picture> | |
| * |