import { GameNode } from '@/components/shared/GameNode.jsx'; import { SHOWROOM_CATALOG } from '@/constants/showroomCatalog.js'; import { showroomModelById, formatRial } from '@/utils/showroomAnswers.js'; import { ShowroomImage } from './ShowroomImage.jsx'; /** @typedef {{nodes:object,actions:object}} ShowroomDialogProps */ /** Presents the factory sample catalog and questions answered by the robot host. * @param {ShowroomDialogProps} props - Showroom state and game commands. * @returns {import('react').ReactNode} Sample dialog, or null before a sample is selected. */ export function ShowroomDialog({ nodes, actions }) { const model = showroomModelById(nodes.showroom?.modelId); if (!model) return null; return ( actions.close('showroom')} aria-labelledby="showroom-title" className="w-[min(92vw,52rem)] max-h-[90dvh] overflow-y-auto rounded-xl border border-white/20 bg-surface p-6 text-hud" >

نمایشگاه کارخانه · {model.name}

{model.name}

قیمت خود دستگاه: {formatRial(model.priceNumeric)}

{model.description}

    {model.highlights.map((item) => (
  • {item}
  • ))}

این بخش معرفی محصول است؛ خرید واقعی انجام نمی‌شود و بودجهٔ هتومان تغییر نمی‌کند.

روبات راهنمای نمایشگاه

{nodes['showroom-response']?.text ?? 'روبات: سلام! دربارهٔ قیمت و امکانات این مدل از من بپرس.'}

); }