{/* Info-Chips — hidden on mobile, shown on desktop */}
{googleDetails?.rating && (() => {
const shortReview = (googleDetails.reviews || []).find(r => r.text && r.text.length > 5)
return (
}
text={<>
{googleDetails.rating.toFixed(1)}
{googleDetails.rating_count ? ({googleDetails.rating_count.toLocaleString(locale)}) : ''}
{shortReview && · „{shortReview.text}"}
>}
color="var(--text-secondary)" bg="var(--bg-hover)"
/>
)
})()}
{place.price > 0 && (
} text={formatMoney(Number(place.price) || 0, place.currency || tripCurrency || 'EUR', locale)} color="#059669" bg="#ecfdf5" />
)}
{/* Collaborative rating (#1435) — every member's own vote, shown as the average. */}
{mode === 'trip' && onRate && (
onRate(place.id, rating)}
/>
)}
{/* Telefon */}
{(place.phone || googleDetails?.phone) && (
)}
{/* Description / Summary */}
{roadtripActive && place.stop_type === 'charging' &&
}
{(roadtripEndDay || roadtripStay) &&
}
{(place.description || googleDetails?.summary) && (
{place.description || googleDetails?.summary || ''}
)}
{/* Notes */}
{place.notes && (
{place.notes}
)}
{/* Day-specific assignment note (#2163) — written via MCP/API or the
edit form; distinct from the pool-wide place.notes above, so it
carries an eyebrow saying which day-scope it belongs to. */}
{assignmentInDay?.notes && (
{t('places.assignmentNotes')}
{assignmentInDay.notes}
)}
{/* Reservation + Participants — trip-only (collections have no days) */}
{mode === 'trip' && (
)}
{/* Opening hours + Files — side by side on desktop only if both exist */}
{/* Extra native rows from placeDetailProvider plugins (#1429). */}
{mode === 'trip' && providerDetails.length > 0 && (
{providerDetails.flatMap((p) => p.items.map((it, i) => (
)))}
)}
{/* Place-detail plugin slots (#1429): sandboxed, scoped to this place. */}
{mode === 'trip' && placeDetailPlugins.length > 0 && (
{placeDetailPlugins.map((p) => {
const tid = (place as { trip_id?: number | string }).trip_id
return (
)
})}
)}
{/* Collection mode — copy to trip + per-place status */}
{mode === 'collection' && onCopyToTrip && (
}
label={
{t('collections.copyToTrip')}} />
)}
{mode === 'collection' && collectionStatus && onSetStatus && (
)}
{/* Trip mode — day assignment.
A stop a lodging booking put there is not offered either way. Taking it off
the day would leave the booking behind with nothing on the drive and no way
back short of saving it again, and putting a second one beside it is the
duplicate the stop exists to prevent. The booking is removed where it is
made: in the day's overnight block, or by turning the night back into a
pause in road trip mode. */}
{mode === 'trip' && !!selectedDayId && !bookedNight && (
assignmentInDay ? (
onRemoveAssignment?.(selectedDayId, assignmentInDay.id)} variant="ghost" icon={}
label={{t('inspector.removeFromDay')}} />
) : (
onAssignToDay?.(place.id)} variant="primary" icon={} label={t('inspector.addToDay')} />
)
)}
{/* Save to Collection — trip mode, independent of the Google Maps link */}
{showSaveToCollection && (
: }
label={{savedInCollection ? t('inspector.savedToCollection') : t('inspector.saveToCollection')}} />
)}
{navigationTargets.length > 0 && (
<>
{/* One target left (a place without coordinates) opens straight
away, exactly as this button always did. */}
{
if (navigationTargets.length === 1) openNavigationTarget(navigationTargets[0])
else setNavOpen(o => !o)
}}
variant="ghost"
icon={}
label={
{navigationTargets.length === 1 ? navigationTargets[0].label : t('inspector.navigation')}
}
/>
{navOpen && (
setNavOpen(false)}
/>
)}
>
)}
{websiteUrl && (
window.open(websiteUrl, '_blank', 'noopener,noreferrer')} variant="ghost" icon={}
label={{t('inspector.website')}} />
)}
{mode === 'trip' && onEdit && (
} label={{t('common.edit')}} />
)}
{mode === 'collection'
? (onRemoveFromList && (
}
label={{t('collections.removeFromList')}} />
))
: (onDelete && (
} label={{t('common.delete')}} />
))}