import React, { FC, useRef, useState } from 'react' import Icon from '@/shared/components/icon' import OLOverlay from '@/features/ui/components/ol/ol-overlay' import OLPopover from '@/features/ui/components/ol/ol-popover' import OLTooltip from '@/features/ui/components/ol/ol-tooltip' import { ReviewPanelResolvedThreadsMenu } from './review-panel-resolved-threads-menu' import { useTranslation } from 'react-i18next' import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' import MaterialIcon from '@/shared/components/material-icon' export const ReviewPanelResolvedThreadsButton: FC = () => { const [expanded, setExpanded] = useState(false) const buttonRef = useRef(null) const { t } = useTranslation() return ( <> {expanded && ( setExpanded(false)} transition={false} container={this} containerPadding={0} placement="bottom" rootClose target={buttonRef.current} > )} ) }