/** * TopicContentEditor - Write/Preview tabs with markdown editor. * @see specs/prd-web.md Section 4 (Editor Components) */ 'use client' import { useState } from 'react' import { cn } from '@/lib/utils' import { MarkdownEditor } from '@/components/markdown-editor' import { MarkdownPreview } from '@/components/markdown-preview' interface TopicContentEditorProps { content: string onChange: (content: string) => void error?: string required?: boolean } export function TopicContentEditor({ content, onChange, error, required, }: TopicContentEditorProps) { const [activeTab, setActiveTab] = useState<'write' | 'preview'>('write') return (
) }