mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 13:01:30 +01:00
24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
import useTranslation from 'next-translate/useTranslation'
|
|
|
|
import { PortfolioItem, PortfolioItemProps } from './PortfolioItem'
|
|
|
|
export const Portfolio: React.FC = () => {
|
|
const { t } = useTranslation('home')
|
|
|
|
const items: PortfolioItemProps[] = t('home:portfolio.items', {}, {
|
|
returnObjects: true
|
|
})
|
|
|
|
return (
|
|
<>
|
|
<div className='container-fluid'>
|
|
<div className='row justify-content-center'>
|
|
{items.map((item, index) => {
|
|
return <PortfolioItem key={index} {...item} />
|
|
})}
|
|
</div>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|