import React from 'react'; import { Link, useParams } from 'react-router-dom'; import { ArrowLeftIcon, ChevronLeftIcon, ClockIcon } from 'lucide-react'; import { Reveal } from '../components/Reveal'; import { ButtonLink } from '../components/Button'; import { ArticleCard } from '../components/ArticleCard'; import { Newsletter } from '../components/home/Newsletter'; import { ARTICLES } from '../data/site'; export function ArticleDetail() { const { slug } = useParams<{slug: string;}>(); const article = ARTICLES.find((a) => a.slug === slug); if (!article) { return (

این مقاله پیدا نشد

فهرست کامل مقالات وبلاگ را ببینید.

بازگشت به وبلاگ
); } const related = ARTICLES.filter((a) => a.slug !== article.slug).slice(0, 3); return ( <>

{article.excerpt}

{article.body.map((paragraph, i) =>

{paragraph}

)}

مقالات مرتبط

{related.map((item, i) => )}
); }