'use client'; import React from 'react'; import { motion } from 'framer-motion'; import { CheckCircle2 } from 'lucide-react'; // ۱. تعریف Type برای داده‌های ورودی کامپوننت // این همان اینترفیس ServiceItem از فایل اصلی شماست export interface ServiceItem { id: string; title: string; subtitle: string; icon: React.ElementType; color: string; description: string; capabilities: string[]; techStack: string[]; } // ۲. تعریف Props کامپوننت کارت interface ServiceCardProps { service: ServiceItem; index: number; // برای تأخیر انیمیشن } const ServiceCard: React.FC = ({ service, index }) => { const Icon = service.icon; return ( {/* Header Card */}
{service.id}

{service.title}

{service.subtitle}

{service.description}

{/* Capabilities List */}
قابلیت‌های کلیدی: {service.capabilities.map((cap, i) => (
{cap}
))}
{/* Tech Stack Footer */}
{service.techStack.map((tech) => ( {tech} ))}
); }; export default ServiceCard;