import React, { type JSX } from 'react'; import type { IUserHasId } from '@growi/core'; import { UserPicture } from '@growi/ui/dist/components'; import styles from './UserInfo.module.scss'; export type UserInfoProps = { author?: IUserHasId; }; export const UserInfo = (props: UserInfoProps): JSX.Element => { const { author } = props; if (author == null || author.status === 4) { return <>; } return (

{author.name}

person {author.username} mail {author.isEmailPublished ? author.email : '*****'} {author.introduction && ( {author.introduction} )}
); };