import { ArrowRightIcon, PhotoIcon } from '@heroicons/react/24/solid'; import clsx from 'clsx'; import Price from 'components/price'; import Image from 'next/image'; import Link from 'next/link'; export function GridTileImage({ active, label, href, place = 'grid', ...props }: { active?: boolean; label?: { title: string; amount: string; currencyCode: string; }; place?: 'grid' | 'gallery'; href: string; } & React.ComponentProps) { return (
{props.src ? ( // eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript ) : (
)}
{label && (

{label.title}

)} {label && (
)}
{place === 'grid' && ( More details )}
); } export const TileImage = ({ active, ...props }: { active?: boolean; } & React.ComponentProps) => { return (
{props.src ? ( // eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript ) : (
)}
); };