import React from 'react'; import { Head, Link, usePage } from '@inertiajs/react'; import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes'; import { useTranslation } from 'react-i18next'; import MarketingLayout from '@/layouts/mainWebsite'; import { Card, CardContent } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import { Button } from '@/components/ui/button'; import { Alert, AlertDescription } from '@/components/ui/alert'; interface PostSummary { id: number; slug: string; title: string; excerpt?: string; excerpt_html?: string; featured_image?: string; published_at?: string; author?: { name?: string } | string; } interface PaginationLink { url: string | null; label: string; active: boolean; } interface Props { posts: { data: PostSummary[]; links: PaginationLink[]; current_page: number; last_page: number; }; } const MarkdownPreview: React.FC<{ html?: string; fallback?: string; className?: string }> = ({ html, fallback, className }) => { if (html && html.trim().length > 0) { return
; } if (!fallback) { return null; } return{fallback}
; }; const Blog: React.FC{t('blog.hero_description')}