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

34 lines
731 B
TypeScript
Raw Normal View History

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()
const paragraphs: InterestParagraphProps[] = t(
'home:interests.paragraphs',
{},
{
returnObjects: true
}
)
2021-04-18 01:56:23 +02:00
return (
<>
<div className='max-w-full'>
2021-04-18 01:56:23 +02:00
{paragraphs.map((paragraph, index) => {
return <InterestParagraph key={index} {...paragraph} />
})}
<InterestsList />
</div>
2021-11-08 15:10:26 +01:00
<style jsx global>{`
#__next {
display: block;
}
`}</style>
2021-04-18 01:56:23 +02:00
</>
)
}