import { Link } from 'react-router-dom'; import { reports } from '@/data/reports'; import type { Report } from '@/data/reports'; const typeLabel: Record = { special: 'ویژه', quarterly: 'فصلی', flash: 'فوری', risk: 'ریسک', free: 'رایگان', }; function formatPrice(price: number): string { if (price === 0) return 'رایگان'; return price.toLocaleString('fa-IR') + ' تومان'; } function SpecialCard({ report }: { report: Report }) { return (
{typeLabel[report.type] ?? report.type} {report.category}

{report.title}

{report.summary}

{report.authorInitial}
{report.author}
{report.authorRole}
{report.pages} صفحه {report.publishDate}
{formatPrice(report.price)} {report.isFree ? 'دریافت رایگان' : 'خرید گزارش'}
); } function CompactCard({ report }: { report: Report }) { return (
{typeLabel[report.type] ?? report.type} {report.category}

{report.title}

{report.summary}

{report.publishDate} {formatPrice(report.price)}
); } export default function Special() { const specialReports = reports.filter((r) => r.type === 'special'); const otherReports = reports.filter((r) => r.type !== 'special'); return (
{/* Hero Banner */}
اندیشکده فولاد ایران — پژوهش‌های تخصصی

گزارش‌های ویژه

تحلیل‌های عمیق و سناریوپردازی‌های راهبردی برای تصمیم‌گیرندگان صنعت فولاد

{specialReports.length} گزارش ویژه {reports.length} گزارش در مجموع
{/* Section A — Special Reports */}

گزارش‌های ویژه

تحلیل‌های سناریومحور و راهبردی
{specialReports.map((report) => ( ))}
{/* Thick Rule Separator */}
{/* Section B — Other Reports */}

سایر گزارش‌های تحلیلی

گزارش‌های فصلی، فوری و تحلیل ریسک
{otherReports.map((report) => ( ))}
); }