import { FC } from 'react' import { formatTimeBasedOnYear } from '@/features/utils/format-date' import { buildName } from '../utils/build-name' import { ReviewPanelResolvedCommentThread } from '../../../../../types/review-panel/comment-thread' import { useTranslation } from 'react-i18next' const ReviewPanelResolvedMessage: FC<{ thread: ReviewPanelResolvedCommentThread }> = ({ thread }) => { const { t } = useTranslation() return (
{buildName(thread.resolved_by_user)}
{formatTimeBasedOnYear(thread.resolved_at)}
{t('marked_as_resolved')}
) } export default ReviewPanelResolvedMessage