diff --git a/alimento-nextjs/app/(PublicRoutes)/restaurant/[restaurantId]/page.tsx b/alimento-nextjs/app/(PublicRoutes)/restaurant/[restaurantId]/page.tsx new file mode 100644 index 0000000..8f50ac4 --- /dev/null +++ b/alimento-nextjs/app/(PublicRoutes)/restaurant/[restaurantId]/page.tsx @@ -0,0 +1,137 @@ +"use client" +import React from 'react'; +import { useParams } from 'next/navigation'; +import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'; +import { Star, MapPin, Clock, CurrencyRupee } from 'lucide-react'; + +const RestaurantItem = () => { + const { restaurantId } = useParams(); + + // Sample restaurant data + const restaurantData = [ + { + restaurant_id: "R001", + restaurant_name: "Punjab Grill", + rating: 4.5, + cuisine: "North Indian, Mughlai", + address: "123 Park Street", + average_cost: 1200, + image: "https://via.placeholder.com/300x200", + hours: { + monday: "11:00 AM - 10:00 PM", + tuesday: "11:00 AM - 10:00 PM", + wednesday: "11:00 AM - 10:00 PM", + thursday: "11:00 AM - 10:00 PM", + friday: "11:00 AM - 11:00 PM", + saturday: "11:00 AM - 11:00 PM", + sunday: "11:00 AM - 10:00 PM" + }, + menu: [ + { + item_id: "M001", + item_name: "Butter Chicken", + price: 450 + }, + { + item_id: "M002", + item_name: "Naan", + price: 50 + }, + { + item_id: "M003", + item_name: "Palak Paneer", + price: 350 + }, + { + item_id: "M004", + item_name: "Biryani", + price: 400 + } + ] + } + ]; + + const restaurant = restaurantData.find((r) => r.restaurant_id === restaurantId); + + if (!restaurant) { + return ( +
The requested restaurant could not be found.
+{restaurant.cuisine}
+Average Cost: ₹{restaurant.average_cost} for two
+
+
{day}
+{time}
+₹{item.price}
+