import { Info } from 'lucide-react' import { MDXRemote } from 'next-mdx-remote/rsc' import remarkGfm from 'remark-gfm' import { components } from '@/components/mdx' import type { WebsiteMetadata } from '@/lib/content-loader' import { stripHtmlTags } from '@/lib/utils' interface WebsiteContentSectionProps { website: WebsiteMetadata } /** * Content section for website detail pages * Displays MDX content if available, otherwise shows fallback information * * @param props - Component props * @param props.website - Website metadata with optional content * @returns Content section with MDX or fallback information */ export function WebsiteContentSection({ website }: WebsiteContentSectionProps) { if (website.content) { return (
) } return (
{/* About Section */}

About {website.name}

Summary and key details

{stripHtmlTags(website.description)} This platform provides AI-ready documentation through the llms.txt standard, making it easy for AI assistants to understand and interact with their services.

{/* Key Information Grid */}
{[ { label: 'Category', value: website.category ? website.category.replace(/-/g, ' ') : 'General', className: 'capitalize' }, { label: 'Type', value: 'Website' }, { label: 'Documentation', value: 'llms.txt compatible' }, { label: 'Added', value: website.publishedAt ? new Date(website.publishedAt).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' }) : 'Recently' } ].map(({ label, value, className = '' }) => (
{label}

{value}

))}
) }