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.