import { Widget } from '@/hooks/Mapper/components/mapInterface/components'; import { Comments } from '@/hooks/Mapper/components/mapInterface/components/Comments'; import { InfoDrawer, SystemView, TooltipPosition, WdImgButton } from '@/hooks/Mapper/components/ui-kit'; import { useRef } from 'react'; import useMaxWidth from '@/hooks/Mapper/hooks/useMaxWidth.ts'; import { COMPACT_MAX_WIDTH } from '@/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/constants.ts'; import { useMapRootState } from '@/hooks/Mapper/mapRootProvider'; import clsx from 'clsx'; import { CommentsEditor } from '@/hooks/Mapper/components/mapInterface/components/CommentsEditor'; import { PrimeIcons } from 'primereact/api'; export const CommentsWidgetContent = () => { const { data: { selectedSystems }, } = useMapRootState(); const isNotSelectedSystem = selectedSystems.length !== 1; if (isNotSelectedSystem) { return (