-
{r.name}
-
+
{r.name}
+
{r.city}, {r.country}
@@ -106,7 +112,7 @@ export default function MapView({ restaurants, selectedId, onSelect }: Props) {
{avgRating(r).toFixed(1)}
-
+
{r.visits.length} {r.visits.length === 1 ? "visit" : "visits"}
diff --git a/app/components/Nav.tsx b/app/components/Nav.tsx
index 42d7743..4fd1584 100644
--- a/app/components/Nav.tsx
+++ b/app/components/Nav.tsx
@@ -3,20 +3,46 @@
import Link from "next/link"
import { usePathname } from "next/navigation"
import { motion } from "framer-motion"
+import { useTheme } from "@/app/components/ThemeProvider"
const navItems = [
{ href: "/", label: "Home", icon: "◈" },
{ href: "/map", label: "Map", icon: "◉" },
]
+function SunIcon() {
+ return (
+
+ )
+}
+
+function MoonIcon() {
+ return (
+
+ )
+}
+
export default function Nav() {
const pathname = usePathname()
+ const { theme, toggle } = useTheme()
return (
<>
{/* Desktop top nav */}
-