const maxWidth = 2048 ; export const supportedSizes = [ 160 , 180 , 282 , 320 , 420 , 600 , 880 , 960 , 1024 , 1338 , maxWidth , ] ; export function imageSizes ( width ) { return supportedSizes . concat ( [ width ] ) . filter ( size => size <= width && size <= maxWidth ) ; }