"use client"; import { CitationProvider } from '@/components/context-citation'; import { ReferencesContainer } from '@/components/container-references'; import { CustomMDX } from '@/components/mdx-custom'; import { Breadcrumbs } from "./element-breadcrumbs"; import Link from 'next/link'; import { Publication } from '@/lib/publications'; import { ProjectNavigation } from './project-navigation'; import { Tag } from 'lucide-react'; import Image from 'next/image'; interface Post { code: string; frontmatter: { title: string; excerpt?: string; teaser?: string; tags?: string[]; icon?: string; date?: string; }; } interface NavigationLink { slug: string; title: string; } interface ArticleProps { post: Post; publications: Publication[]; navigation?: { prev: NavigationLink | null; next: NavigationLink | null; }; basePath: string; } export function Article({ post, publications, navigation, basePath }: ArticleProps) { return (
{post.frontmatter.date && ( )}

{post.frontmatter.title}

{post.frontmatter.excerpt && (

{post.frontmatter.excerpt}

)}
{post.frontmatter.icon && (
{`${post.frontmatter.title}
)}
{post.frontmatter.tags && (
{post.frontmatter.tags.map((tag: string) => ( {tag} ))}
)} {navigation && ( )}
); }