'use client' import { Textarea } from '@thedaviddias/design-system/textarea' import { useState } from 'react' import ReactMarkdown from 'react-markdown' import { CharacterCounter } from '@/components/ui/character-counter' interface MDXTextareaProps { value: string onChange: (value: string) => void placeholder?: string } /** * MDX textarea component with live preview */ export function MDXTextarea({ value, onChange, placeholder }: MDXTextareaProps) { const [activeTab, setActiveTab] = useState<'edit' | 'preview'>('edit') const templateContent = `## Key Focus Areas - **AI Integration**: Details about AI/ML capabilities - **API Documentation**: Coverage of API endpoints and usage - **Developer Tools**: Build tools, SDKs, and integrations - **Data Processing**: How data is handled and transformed ## About llms.txt Implementation Our llms.txt file provides comprehensive documentation about our platform's AI-ready content structure, making it easy for language models to understand and work with our system.` return (
{/* Template Helper */}

Content Template

• Use **bold** for emphasis and ## for headings

• Click "Use Template" to insert example content

• Switch to Preview tab to see how it will render

{/* Tab Navigation */}
{/* Content Area */}
{activeTab === 'edit' ? (