mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 01:27:31 +00:00
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
import { useTranslation } from 'next-i18next';
|
|
|
|
import FrameworkIntegration from './FrameworkIntegration';
|
|
|
|
interface Framework {
|
|
name: string;
|
|
image: string;
|
|
link: string;
|
|
slug: string;
|
|
docsLink: string;
|
|
}
|
|
|
|
interface Props {
|
|
frameworks: [Framework];
|
|
}
|
|
|
|
const FrameworkIntegrationSection = ({ frameworks }: Props) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<>
|
|
<div className='flex flex-col justify-between items-start mx-4 mt-12 mb-4 text-xl max-w-5xl px-2'>
|
|
<h1 className='font-semibold text-3xl'>
|
|
{t('integrations:framework-integrations')}
|
|
</h1>
|
|
<p className='text-base text-gray-400'>
|
|
{t('integrations:click-to-setup')}
|
|
</p>
|
|
</div>
|
|
<div className='grid gap-4 grid-cols-7 grid-rows-2 mx-6 mt-4 max-w-5xl'>
|
|
{frameworks.map((framework) => (
|
|
<FrameworkIntegration
|
|
framework={framework}
|
|
key={`framework-integration-${framework.slug}`}
|
|
/>
|
|
))}
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default FrameworkIntegrationSection;
|