"use client"; import { useState } from "react"; import { motion, AnimatePresence } from "framer-motion"; import Link from "next/link"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; import type { Locale } from "@/i18n-config"; import type { PrivacyApp } from "@/data/privacy"; const easeOutExpo = [0.16, 1, 0.3, 1] as [number, number, number, number]; export default function PrivacyClient({ lang, dict, apps, }: { lang: Locale; dict: any; apps: PrivacyApp[]; }) { const [selectedPlatform, setSelectedPlatform] = useState("ALL"); const [searchQuery, setSearchQuery] = useState(""); const isTr = lang === "tr"; const platforms = [ { id: "ALL", label: isTr ? "TÜM UYGULAMALAR" : "ALL PRODUCTS" }, { id: "iOS", label: "iOS" }, { id: "Android", label: "ANDROID" }, { id: "Web", label: "WEB & CLOUD" }, { id: "API", label: "API & SDK" }, ]; const filteredApps = apps.filter((app) => { const matchesPlatform = selectedPlatform === "ALL" || app.platforms.some((p) => selectedPlatform === "Web" ? p === "Web" || p === "Cloud" || p === "SaaS" : selectedPlatform === "API" ? p === "API" || p === "SDK" : p === selectedPlatform ); const matchesSearch = searchQuery.trim() === "" || app.name.toLowerCase().includes(searchQuery.toLowerCase()) || app.summary[lang].toLowerCase().includes(searchQuery.toLowerCase()) || app.category[lang].toLowerCase().includes(searchQuery.toLowerCase()); return matchesPlatform && matchesSearch; }); const corePrinciples = [ { code: "SEC-01", title: isTr ? "Sıfır Veri Satışı" : "Zero Data Monetization", desc: isTr ? "Kişisel ve kurumsal verileriniz hiçbir reklam ağı veya üçüncü taraf veri simsarı ile paylaşılmaz, satılmaz veya kiralanmaz." : "Your data is strictly yours. We never sell, rent, or trade your personal records to third-party ad brokers.", badge: isTr ? "KESİN İLKE" : "CORE PRINCIPLE", }, { code: "SEC-02", title: isTr ? "Uçtan Uca Şifreleme" : "End-to-End Encryption", desc: isTr ? "Tüm veri akışları TLS 1.3 protokolü ile aktarılır, veri tabanlarımızda AES-256 seviyesinde şifrelenerek depolanır." : "All communication is locked with TLS 1.3 and stored with military-grade AES-256 encryption at rest.", badge: "AES-256", }, { code: "SEC-03", title: isTr ? "KVKK & GDPR Uyumu" : "Global Compliance", desc: isTr ? "Tüm ürünlerimiz 6698 sayılı KVKK ve Avrupa Birliği GDPR standartları ile tam uyumlu olarak geliştirilir." : "Engineered from day one in strict compliance with EU GDPR and Turkish KVKK data protection statutes.", badge: "ISO/GDPR", }, { code: "SEC-04", title: isTr ? "Anında Veri Silme" : "Instant Data Deletion", desc: isTr ? "Uygulama içi ayarlardan veya tek tıkla destek e-postası ile tüm verilerinizi geri döndürülemez biçimde silebilirsiniz." : "Permanent, irrevocable deletion of your account and files on demand directly in-app or via our security desk.", badge: isTr ? "TAM KONTROL" : "FULL CONTROL", }, ]; return (
{/* Page Header */}
{isTr ? "AYRİS TECH — GİZLİLİK VE VERİ MERKEZİ" : "AYRIS TECH — PRIVACY & COMPLIANCE HUB"}
{isTr ? "GİZLİLİK" : "PRIVACY"}
{isTr ? "POLİTİKALARI" : "POLICIES"}

{isTr ? "Ayris Tech bünyesindeki tüm mobil uygulamalar, bulut platformları ve geliştirici servislerinin veri işleme ilkelerine, izinlerine ve kullanıcı hakları bildirimlerine buradan ulaşabilirsiniz." : "Access the transparent privacy policies, hardware permission scopes, and data subject rights for all Ayris Tech applications, cloud services, and developer tools."}

{/* Core Principles Matrix */}
{isTr ? "01 / GÜVENLİK VE GİZLİLİK STANDARTLARIMIZ" : "01 / SECURITY & PRIVACY BENCHMARKS"}
ISO 27001 · KVKK · GDPR
{corePrinciples.map((item, idx) => (
{item.code} {item.badge}

{item.title}

{item.desc}

))}
{/* Apps Privacy Directory */}
{isTr ? "02 / UYGULAMA GİZLİLİK REHBERİ" : "02 / APPLICATION DIRECTORY"}

{isTr ? "UYGULAMALARIMIZ VE SERVİSLERİMİZ" : "APPLICATIONS & PLATFORMS"}

{/* Filter Tabs */}
{platforms.map((tab) => ( ))}
{/* Search Box */}
setSearchQuery(e.target.value)} className="w-full bg-[#EDE8E0] border border-[#C8C2B8] focus:border-[#0A0A0A] px-4 py-3.5 font-mono text-[13px] text-[#0A0A0A] placeholder-[#A0998E] outline-none transition-colors" /> {searchQuery && ( )}
{/* Apps Grid */}
{filteredApps.map((app, idx) => (
{/* Top Row: Icon, Category, Platforms */}
{app.icon}
{app.category[lang]}

{app.name}

{app.platforms.map((p) => ( {p} ))}
{/* Summary */}

{app.summary[lang]}

{/* Highlights Badges */}
{app.highlights[lang].slice(0, 4).map((h, i) => (
{h.label}
{h.value}
))}
{/* Bottom Action */}
{isTr ? "Son Güncelleme:" : "Updated:"} {app.lastUpdated[lang]} {isTr ? "POLİTİKAYI İNCELE" : "VIEW POLICY"}
))}
{filteredApps.length === 0 && (
{isTr ? "Kayıt Bulunamadı" : "No Applications Found"}

{isTr ? "Aradığınız kriterlere uygun uygulama gizlilik politikası bulunamadı." : "No application policies matched your filter criteria."}

)}
{/* Data Subject Request & Deletion Box */}
{isTr ? "KVKK MADDE 11 & GDPR HAK TALEPLERİ" : "DATA SUBJECT RIGHTS & ERASURE"}

{isTr ? "VERİLERİNİZİ SİLMEK VEYA BİLGİ ALMAK MI İSTİYORSUNUZ?" : "NEED TO ERASE YOUR DATA OR INQUIRE?"}

{isTr ? "Herhangi bir uygulamamızdaki hesabınızın, fişlerinizin, dava kayıtlarınızın veya kişisel verilerinizin kalıcı olarak silinmesini doğrudan talep edebilirsiniz." : "Request permanent deletion of your account records, telemetry data, or stored files across any of our applications instantly."}

{isTr ? "HAK / SİLME TALEBİ GÖNDER" : "SUBMIT ERASURE REQUEST"}
); }