2021-04-18 01:56:23 +02:00
|
|
|
import useTranslation from 'next-translate/useTranslation'
|
|
|
|
|
2022-09-04 20:40:58 +02:00
|
|
|
import type { PortfolioItemProps } from './PortfolioItem'
|
|
|
|
import { PortfolioItem } from './PortfolioItem'
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
export const Portfolio: React.FC = () => {
|
|
|
|
const { t } = useTranslation('home')
|
|
|
|
|
2021-05-08 19:52:04 +02:00
|
|
|
const items: PortfolioItemProps[] = t(
|
|
|
|
'home:portfolio.items',
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
returnObjects: true
|
|
|
|
}
|
|
|
|
)
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
return (
|
2021-12-04 15:52:51 +01:00
|
|
|
<div className='flex w-full flex-wrap justify-center px-3'>
|
2021-05-08 19:52:04 +02:00
|
|
|
{items.map((item, index) => {
|
|
|
|
return <PortfolioItem key={index} {...item} />
|
|
|
|
})}
|
|
|
|
</div>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|