import type { Metadata } from "next"; import { Mail, MapPin, Phone, Clock } from "lucide-react"; import { SectionTitle } from "@/components/section-title"; import { ContactForm } from "@/components/contact-form"; import { getSiteSettings } from "@/lib/data"; import { siteConfig } from "@/lib/site-config"; import { buildMetadata } from "@/lib/seo"; export async function generateMetadata(): Promise { return buildMetadata("/iletisim", { title: "İletişim", description: "Projeniz hakkında konuşmak için bize ulaşın. İzmit Sanayi Sitesi, Kocaeli.", }); } export default async function ContactPage() { const s = await getSiteSettings(); const address = s?.contact_address ?? siteConfig.contact.address; const phone = s?.contact_phone ?? siteConfig.contact.phone; const phoneRaw = s?.contact_phone_raw ?? siteConfig.contact.phoneRaw; const email = s?.contact_email ?? siteConfig.contact.email; const weekday = s?.contact_hours_weekday ?? "Hafta içi 09:00 — 18:00"; const weekend = s?.contact_hours_weekend ?? "Cumartesi 10:00 — 14:00"; return (
} title="Adres" content={address} /> } title="Telefon" content={ {phone} } /> } title="E-posta" content={ {email} } /> } title="Çalışma Saatleri" content={ <> {weekday}
{weekend} } />
); } function InfoCard({ icon, title, content, }: { icon: React.ReactNode; title: string; content: React.ReactNode; }) { return (
{icon}

{title}

{content}
); }