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 = ({ comments }: { comments: CommentData[] }) => { const getCommentsList = () => { return comments.map((comment) => { return ; }); }; return ( <> {comments.length > 0 ? (
    {getCommentsList()}
) : (

{t`No comments yet.`}

)} ); }; export default CommentsList;