import { Widget } from '@/hooks/Mapper/components/mapInterface/components'; import { Comments } from '@/hooks/Mapper/components/mapInterface/components/Comments'; import { SystemView } 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'; export const CommentsWidgetContent = () => { const { data: { selectedSystems, isSubscriptionActive }, } = useMapRootState(); const isNotSelectedSystem = selectedSystems.length !== 1; if (!isSubscriptionActive) { return (