2021-04-18 01:56:23 +02:00
|
|
|
import useTranslation from 'next-translate/useTranslation'
|
|
|
|
|
|
|
|
import { InterestParagraph, InterestParagraphProps } from './InterestParagraph'
|
|
|
|
import { InterestsList } from './InterestsList'
|
|
|
|
|
|
|
|
export const Interests: React.FC = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
2021-05-08 19:52:04 +02:00
|
|
|
const paragraphs: InterestParagraphProps[] = t(
|
|
|
|
'home:interests.paragraphs',
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
returnObjects: true
|
|
|
|
}
|
|
|
|
)
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
return (
|
2022-02-23 09:03:10 +01:00
|
|
|
<div className='max-w-full'>
|
|
|
|
{paragraphs.map((paragraph, index) => {
|
|
|
|
return <InterestParagraph key={index} {...paragraph} />
|
|
|
|
})}
|
|
|
|
<InterestsList />
|
|
|
|
</div>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|