DiagnosisSection.tsx 708 B

12345678910111213141516171819202122232425
  1. /* eslint-disable */
  2. import React from 'react';
  3. import { useDispatch } from 'react-redux';
  4. import { Input } from 'antd';
  5. import { useDiagnosticData } from '@/hooks/useDiagnosticData';
  6. export const DiagnosisSection: React.FC = () => {
  7. const [impression, setImpression] = useDiagnosticData('impression');
  8. return (
  9. <div className="flex flex-col">
  10. <div className="flex justify-between items-center">
  11. <span className="label">影像诊断</span>
  12. </div>
  13. <Input.TextArea
  14. className="w-full border rounded"
  15. value={impression}
  16. onChange={(e) => setImpression(e.target.value)}
  17. placeholder="由用户输入"
  18. rows={4}
  19. />
  20. </div>
  21. );
  22. };