import { memo } from 'react' import { Change, CommentOperation } from '../../../../../types/change' import { useThreadsContext } from '../context/threads-context' import classnames from 'classnames' import { ReviewPanelEntry } from './review-panel-entry' import MaterialIcon from '@/shared/components/material-icon' import { ReviewPanelCommentContent } from './review-panel-comment-content' export const ReviewPanelComment = memo<{ comment: Change top?: number }>(({ comment, top }) => { const threads = useThreadsContext() const thread = threads?.[comment.op.t] if (!thread || thread.resolved) { return null } return (
) }) ReviewPanelComment.displayName = 'ReviewPanelComment'