import { useState } from 'react' import Image from 'next/image' import useTranslation from 'next-translate/useTranslation' import classNames from 'classnames' import { Emoji } from 'components/Emoji' import { ConfirmGuildJoin } from 'components/Application/ConfirmGuildJoin' import { GuildPublic as GuildPublicType } from '../../../../models/Guild' export interface GuildPublicProps { guild: GuildPublicType } export const GuildPublic: React.FC = (props) => { const { guild } = props const [isConfirmed, setIsConfirmed] = useState(false) const { t } = useTranslation() return (
setIsConfirmed(!isConfirmed)} > logo

{guild.name}

{guild.description != null ? ( guild.description ) : ( Nothing's here... )}

{guild.membersCount} {t('application:members')}

setIsConfirmed(!isConfirmed)} />
) }