Files
remark42/web/app/components/user-info/last-comments-list.jsx
T

20 lines
463 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;