import { CldImage } from 'next-cloudinary'; import Link from 'next/link'; import { Yacht } from '../data/yachts'; import { useTranslations } from 'next-intl'; interface YachtCardProps { yacht: Yacht; } export default function YachtCard({ yacht }: YachtCardProps) { const t = useTranslations('YachtCard'); return (
{yacht.builder} — {yacht.year} {yacht.refitYear && `(${yacht.refitYear})`}
{/* Spec Grid */}{t('from')} {yacht.weeklyPrice} {t('p_week')}