const hi = () => ({ its_ireelevant: () => true, }); const hey = () => ({ any_name_will_do: () => true, }); // function getWidths(width, layout, sizes) { // if (sizes && (layout === "fill" || layout === "responsive")) { // // Find all the "vw" percent sizes used in the sizes prop // const percentSizes = [...sizes.matchAll(/(^|\s)(1?\d?\d)vw/g)].map((m) => // parseInt(m[2]) // ); // if (percentSizes.length) { // // const smallestRatio = Math.min(...percentSizes) * 0.01; // // return { // // widths: allSizes.filter( // // (s) => s >= configDeviceSizes[0] * smallestRatio // // ), // // kind: "w", // // }; // } // return { widths: allSizes, kind: "w" }; // } // if ( // typeof width !== "number" || // layout === "fill" || // layout === "responsive" // ) { // return { widths: configDeviceSizes, kind: "w" }; // } // // const widths = [ // // ...new Set( // > This means that most OLED screens that say they are 3x resolution, // // // > are actually 3x in the green color, but only 1.5x in the red and // // // > blue colors. Showing a 3x resolution image in the app vs a 2x // // // > resolution image will be visually the same, though the 3x image // // // > takes significantly more data. Even true 3x resolution screens are // // // > wasteful as the human eye cannot see that level of detail without // // // > something like a magnifying glass. // // // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html // // [width, width * 2 /*, width * 3*/].map( // // (w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1] // // ) // // ), // // ]; // // return { widths, kind: "x" }; // }