import Image from 'next/image' import date from 'date-and-time' import useTranslation from 'next-translate/useTranslation' import type { UserPublic } from '../../../models/User' import type { Guild } from '../../../models/Guild' export interface UserProfileProps { className?: string user: UserPublic guilds: Guild[] } export const UserProfile: React.FC = (props) => { const { user } = props const { t } = useTranslation() return (
Profil Picture

{user.name}

{date.format(new Date(user.createdAt), 'DD/MM/YYYY')}

{user.email != null && (

Email:{' '} {user.email}

)} {user.website != null && (

{t('application:website')}:{' '} {user.website}

)} {user.status != null && (

{t('application:status')}:{' '} {user.status}

)}
{user.biography != null && (

{user.biography}

)}
) }