"use client"; import { useEffect, useState } from "react"; import { useMutation, useQueryClient } from "@tanstack/react-query"; import { useTranslations } from "next-intl"; import { apiPatch, apiPost, apiUpload, resolveMediaUrl } from "@/lib/api/client"; import { cafeSettingsQueryKey, useCafeSettings, type CafeSettings, } from "@/lib/hooks/use-cafe-settings"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { LabeledField } from "@/components/ui/labeled-field"; import { notify } from "@/lib/notify"; // ── Location map preview ────────────────────────────────────────────────────── function LocationMapPreview({ lat, lng }: { lat: number; lng: number }) { const zoom = 15; const src = `https://www.openstreetmap.org/export/embed.html?bbox=${lng - 0.01},${lat - 0.01},${lng + 0.01},${lat + 0.01}&layer=mapnik&marker=${lat},${lng}`; return (