import Comment from '@components/Comment/Comment';
import { Comment as CommentData } from '@ts/types/comments';
import { useIntl } from 'react-intl';
import styles from './CommentsList.module.scss';
const CommentsList = ({
articleId,
comments,
}: {
articleId: number;
comments: CommentData[];
}) => {
const intl = useIntl();
const getCommentsList = () => {
return comments.map((comment) => {
return (
{intl.formatMessage({ defaultMessage: 'No comments yet.', description: 'CommentsList: No comment message', })}
)} > ); }; export default CommentsList;