1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-19 22:15:53 +02:00
.profile/components/Interests/index.tsx

27 lines
647 B
TypeScript
Raw Normal View History

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