11import React from "react" ;
2- import { Card , Image } from "react-bootstrap" ;
2+ import { Card , Image , Button } from "react-bootstrap" ;
33import Tag from "./Tag" ;
44
55const FALLBACK_IMAGE = "https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&w=1500&q=80" ;
@@ -13,7 +13,7 @@ const normalizeTags = (tags) => {
1313} ;
1414
1515export default function RestaurantDetailPanel ( { restaurant, onTagClick } ) {
16- const { name, rating, tags = [ ] , address, hours, description, image, imageAlt, image_alt } = restaurant ;
16+ const { name, rating, tags = [ ] , address, hours, description, image, imageAlt, image_alt, website , maps_link } = restaurant ;
1717 const altText = imageAlt || image_alt ;
1818 const normalizedTags = normalizeTags ( tags ) ;
1919 const imageSrc = image || FALLBACK_IMAGE ;
@@ -63,6 +63,35 @@ export default function RestaurantDetailPanel({ restaurant, onTagClick }) {
6363 </ Card . Text >
6464 ) }
6565
66+ { ( website || maps_link ) && (
67+ < div className = "mb-3 d-flex gap-2 flex-wrap" >
68+ { website && (
69+ < Button
70+ variant = "outline-primary"
71+ size = "sm"
72+ href = { website }
73+ target = "_blank"
74+ rel = "noopener noreferrer"
75+ aria-label = { `Visit ${ name } website` }
76+ >
77+ 🌐 Website
78+ </ Button >
79+ ) }
80+ { maps_link && (
81+ < Button
82+ variant = "outline-success"
83+ size = "sm"
84+ href = { maps_link }
85+ target = "_blank"
86+ rel = "noopener noreferrer"
87+ aria-label = { `View ${ name } on Google Maps` }
88+ >
89+ 📍 View on Maps
90+ </ Button >
91+ ) }
92+ </ div >
93+ ) }
94+
6695 { description && (
6796 < >
6897 < h2 className = "h5 mt-4" > About</ h2 >
0 commit comments