2021-04-18 01:56:23 +02:00
|
|
|
import useTranslation from 'next-translate/useTranslation'
|
2022-03-24 18:57:27 +01:00
|
|
|
import { useMemo } from 'react'
|
2021-04-18 01:56:23 +02:00
|
|
|
|
2023-05-29 17:10:14 +02:00
|
|
|
import { DIVLO_BIRTH_DATE, DIVLO_BIRTH_DATE_STRING, getAge } from 'utils/getAge'
|
2022-03-24 11:45:19 +01:00
|
|
|
|
2021-04-18 01:56:23 +02:00
|
|
|
import { ProfileItem } from './ProfileItem'
|
|
|
|
|
2022-03-24 18:57:27 +01:00
|
|
|
export const ProfileList: React.FC = () => {
|
2021-04-18 01:56:23 +02:00
|
|
|
const { t } = useTranslation('home')
|
|
|
|
|
2022-03-24 18:57:27 +01:00
|
|
|
const age = useMemo(() => {
|
2023-05-29 17:10:14 +02:00
|
|
|
return getAge(DIVLO_BIRTH_DATE)
|
2022-03-24 18:57:27 +01:00
|
|
|
}, [])
|
|
|
|
|
2021-04-18 01:56:23 +02:00
|
|
|
return (
|
2021-12-04 15:52:51 +01:00
|
|
|
<ul className='m-0 list-none p-0'>
|
2023-05-29 17:10:14 +02:00
|
|
|
<ProfileItem
|
|
|
|
title={t('home:about.pronouns')}
|
|
|
|
value={t('home:about.pronouns-value')}
|
|
|
|
/>
|
2022-03-24 11:45:19 +01:00
|
|
|
<ProfileItem
|
|
|
|
title={t('home:about.birth-date')}
|
2023-05-29 17:10:14 +02:00
|
|
|
value={`${DIVLO_BIRTH_DATE_STRING} (${age} ${t(
|
|
|
|
'home:about.years-old'
|
|
|
|
)})`}
|
2022-03-24 11:45:19 +01:00
|
|
|
/>
|
2021-05-08 19:52:04 +02:00
|
|
|
<ProfileItem title={t('home:about.nationality')} value='Alsace, France' />
|
|
|
|
<ProfileItem
|
|
|
|
title='Email'
|
|
|
|
value='contact@divlo.fr'
|
|
|
|
link='mailto:contact@divlo.fr'
|
|
|
|
/>
|
|
|
|
</ul>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|