1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

NodeNoComments

This commit is contained in:
muerwre 2019-07-27 18:52:47 +07:00
parent ea87b50a83
commit b5b8d78cea
7 changed files with 69 additions and 9 deletions

View file

@ -1,18 +1,28 @@
import React, { FC } from 'react';
import React, {FC, HTMLAttributes} from 'react';
import { Card } from "~/components/containers/Card";
import * as styles from './styles.scss';
import classNames = require("classnames");
interface IProps {}
type IProps = HTMLAttributes<HTMLDivElement> & {
is_empty?: boolean;
is_loading?: boolean;
}
const Comment: FC<IProps> = () => (
<Card className={styles.wrap}>
const Comment: FC<IProps> = ({
is_empty,
is_loading,
className,
...props
}) => (
<Card
className={classNames(styles.wrap, className, { is_empty, is_loading })}
{...props}
>
<div className={styles.thumb}>
<div className={styles.thumb_image} />
</div>
<div className={styles.text}>
Lorem Ipsum
</div>
<div className={styles.text} />
</Card>
);