"use client" import { motion } from "framer-motion" import type { AnalysisResult } from "@/app/page" interface RecommendationsSectionProps { result: AnalysisResult | null } const categoryIcons = [ , , , , ] const cardColors = ["gradient-primary", "gradient-secondary", "bg-accent", "bg-primary/80"] export function RecommendationsSection({ result }: RecommendationsSectionProps) { if (!result) return null const groups = result.report?.tips_categorized ?? [] if (groups.length === 0) return null return ( {/* Background */} {/* Section Header */} نصائح مخصصة لك توصيات لتحسين صحتك بناءً على نتائج تحليلك، إليك مجموعة من النصائح والتوصيات لتحسين صحتك العامة {/* Recommendations Grid */} {groups.map((group, index) => ( {/* Header */} {categoryIcons[index % categoryIcons.length]} {group.category} {/* Checklist */} {group.tips.map((tip, i) => ( {tip} ))} ))} {/* CTA */} هذه التوصيات مبنية على نتائج تحليلك وليست بديلاً عن استشارة الطبيب المختص احجز موعداً مع طبيب ) }
بناءً على نتائج تحليلك، إليك مجموعة من النصائح والتوصيات لتحسين صحتك العامة
هذه التوصيات مبنية على نتائج تحليلك وليست بديلاً عن استشارة الطبيب المختص