import React, { FC } from 'react'; import classNames from 'classnames'; import styles from './styles.module.scss'; import { IUser } from '~/redux/auth/types'; import { path } from 'ramda'; import { CommentAvatar } from '~/components/comment/CommentAvatar'; import { DivProps } from '~/utils/types'; type IProps = DivProps & { user: IUser; isEmpty?: boolean; isLoading?: boolean; isForm?: boolean; isNew?: boolean; }; const CommentWrapper: FC = ({ user, className, isEmpty, isLoading, isForm, children, isNew, ...props }) => (
~{path(['username'], user)}
{children}
); export { CommentWrapper };