* update dependencies * fix eslint warnings * remove redundant sass-loader
22 lines
481 B
React
22 lines
481 B
React
/** @jsx h */
|
|
import { h } from 'preact';
|
|
|
|
import Comment from 'components/comment';
|
|
import Preloader from 'components/preloader';
|
|
|
|
const LastCommentsList = ({ comments, isLoading, mods = {} }) => {
|
|
if (isLoading) {
|
|
return <Preloader mix="user-info__preloader" />;
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
{comments.map(comment => (
|
|
<Comment data={comment} mods={{ level: 0, view: 'user', theme: mods.theme }} />
|
|
))}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default LastCommentsList;
|