mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 13:01:30 +01:00
24 lines
608 B
TypeScript
24 lines
608 B
TypeScript
|
import useTranslation from 'next-translate/useTranslation'
|
||
|
|
||
|
import { InterestParagraph, InterestParagraphProps } from './InterestParagraph'
|
||
|
import { InterestsList } from './InterestsList'
|
||
|
|
||
|
export const Interests: React.FC = () => {
|
||
|
const { t } = useTranslation()
|
||
|
|
||
|
const paragraphs: InterestParagraphProps[] = t('home:interests.paragraphs', {}, {
|
||
|
returnObjects: true
|
||
|
})
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<div className='col-24'>
|
||
|
{paragraphs.map((paragraph, index) => {
|
||
|
return <InterestParagraph key={index} {...paragraph} />
|
||
|
})}
|
||
|
<InterestsList />
|
||
|
</div>
|
||
|
</>
|
||
|
)
|
||
|
}
|