mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
34 lines
905 B
TypeScript
34 lines
905 B
TypeScript
import useTranslation from 'next-translate/useTranslation'
|
|
import { useMemo } from 'react'
|
|
|
|
import { BIRTH_DATE, BIRTH_DATE_STRING, getAge } from 'utils/getAge'
|
|
|
|
import { ProfileItem } from './ProfileItem'
|
|
|
|
export const ProfileList: React.FC = () => {
|
|
const { t } = useTranslation('home')
|
|
|
|
const age = useMemo(() => {
|
|
return getAge(BIRTH_DATE)
|
|
}, [])
|
|
|
|
return (
|
|
<ul className='m-0 list-none p-0'>
|
|
<ProfileItem
|
|
title={t('home:about.pronouns')}
|
|
value={t('home:about.pronouns-value')}
|
|
/>
|
|
<ProfileItem
|
|
title={t('home:about.birth-date')}
|
|
value={`${BIRTH_DATE_STRING} (${age} ${t('home:about.years-old')})`}
|
|
/>
|
|
<ProfileItem title={t('home:about.nationality')} value='Alsace, France' />
|
|
<ProfileItem
|
|
title='Email'
|
|
value='contact@theoludwig.fr'
|
|
link='mailto:contact@theoludwig.fr'
|
|
/>
|
|
</ul>
|
|
)
|
|
}
|