import { css, cx } from '@emotion/css' import { sampleSize, shuffle } from 'lodash-es' import Image from './Image' import { covers } from '@/web/.storybook/mock/tracks' import { resizeImage } from '@/web/utils/common' import useBreakpoint from '@/web/hooks/useBreakpoint' import { useMemo } from 'react' const CoverWall = () => { const bigCover = useMemo( () => shuffle( sampleSize([...Array(covers.length).keys()], ~~(covers.length / 3)) ), [] ) const breakpoint = useBreakpoint() const sizes = { small: { sm: 'xs', md: 'xs', lg: 'sm', xl: 'sm', '2xl': 'md', }, big: { sm: 'xs', md: 'sm', lg: 'md', xl: 'md', '2xl': 'lg', }, } as const return (