import Link from "next/link"; import { ArrowRight, MessageCircle, Phone, ShieldCheck } from "lucide-react"; import { Icon } from "@/components/icon"; import { getSiteSettings, listSolutions } from "@/lib/data"; import { siteConfig } from "@/lib/site-config"; import { QuickLeadForm } from "@/components/quick-lead-form"; export async function SolutionSidebar({ currentSlug, }: { currentSlug: string; }) { const [settings, solutions] = await Promise.all([ getSiteSettings(), listSolutions(), ]); const otherSolutions = solutions .filter((s) => s.slug !== currentSlug) .slice(0, 6); const phoneRaw = settings?.contact_phone_raw ?? siteConfig.contact.phoneRaw; const phone = settings?.contact_phone ?? siteConfig.contact.phone; const wa = phoneRaw.replace(/[^\d]/g, ""); const waMessage = settings?.whatsapp_message ?? ""; const waHref = `https://wa.me/${wa}${ waMessage ? `?text=${encodeURIComponent(waMessage)}` : "" }`; return ( ); }