import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { EyeIcon, PencilIcon } from '@heroicons/react/24/outline'; import MarkdownRenderer from '../../Shared/MarkdownRenderer'; interface TaskContentSectionProps { taskId: number | undefined; value: string; onChange: (e: React.ChangeEvent) => void; } const TaskContentSection: React.FC = ({ taskId, value, onChange, }) => { const { t } = useTranslation(); const [activeTab, setActiveTab] = useState<'edit' | 'preview'>('edit'); return (
{/* Content area with floating buttons */}
{/* Floating toggle buttons */}
{activeTab === 'edit' ? (