import { resizeImage } from '@/web/utils/common'
import { css, cx } from '@emotion/css'
import { memo } from 'react'
import Image from './Image'
const Artist = ({ artist }: { artist: Artist }) => {
return (
)
}
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 => (
))}
)}
)
}
const memoizedArtistRow = memo(ArtistRow)
memoizedArtistRow.displayName = 'ArtistRow'
export default memoizedArtistRow