import cn from 'classnames' import Image from 'next/image' import Link from 'next/link' type Props = { title: string coverImage: string slug?: string } export default function CoverImage({ title, coverImage, slug }: Props) { const image = ( {`Cover ) return (
{slug ? ( {image} ) : ( image )}
) }