import { Comment as CommentData } from '@ts/types/comments'; import Comment from '@components/Comment/Comment'; import { t } from '@lingui/macro'; import styles from './CommentsList.module.scss'; const CommentsList = ({ articleId, comments, }: { articleId: number; comments: CommentData[]; }) => { const getCommentsList = () => { return comments.map((comment) => { return ( ); }); }; return ( <>

{t`Comments`}

{comments.length > 0 ? (
    {getCommentsList()}
) : (

{t`No comments yet.`}

)} ); }; export default CommentsList;