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 (
{/* Image Container */}
{/* Award Badge */} {yacht.award && (
{yacht.award}
)} {/* Top Right Heart Icon */}
favorite
{/* Bottom Right Icons */}
photo_camera
play_arrow
{/* Brand Text Overlay */}
SALMAKIS
{/* Info Section */}

{yacht.name}

{yacht.builder} — {yacht.year} {yacht.refitYear && `(${yacht.refitYear})`}

{/* Spec Grid */}
{yacht.length} {yacht.lengthFt} {t('length')}
{yacht.guests} {t('guests')}
{yacht.cabins} {t('cabins')}
{yacht.crew} {t('crew')}

{t('from')} {yacht.weeklyPrice} {t('p_week')}

); }