import { PhotoIcon } from '@heroicons/react/24/outline'; import clsx from 'clsx'; import Image from 'next/image'; import Label from '../label'; export function GridTileImage({ active, label, ...props }: { active?: boolean; label?: { title: string; amount: string; currencyCode: 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 ? (
); }