import { resizeImage } from '@/web/utils/common' import { css, cx } from '@emotion/css' import Image from './Image' const Artist = ({ artist }: { artist: Artist }) => { return (
{artist.name}
{artist.name}
) } const ArtistRow = ({ artists, title, className, placeholderRow, }: { artists: Artist[] | undefined title?: string className?: string placeholderRow?: number }) => { return (
{/* Title */} {title && (

{title}

)} {/* Artists */} {artists && (
{artists.map(artist => (
))}
)} {/* Placeholder */} {placeholderRow && !artists && (
{[...new Array(placeholderRow * 5).keys()].map(i => (
PLACE
))}
)}
) } export default ArtistRow