import SvgIcon from '@/web/components/SvgIcon' import cx from 'classnames' import { useState } from 'react' const Cover = ({ imageUrl, onClick, roundedClass = 'rounded-xl', showPlayButton = false, showHover = true, alwaysShowShadow = false, }: { imageUrl: string onClick?: () => void roundedClass?: string showPlayButton?: boolean showHover?: boolean alwaysShowShadow?: boolean }) => { const [isError, setIsError] = useState(imageUrl.includes('3132508627578625')) return (
{/* Neon shadow */} {showHover && (
)} {/* Cover */} {isError ? (
) : ( imageUrl && setIsError(true)} /> )} {/* Play button */} {showPlayButton && (
)}
) } export default Cover