import { Button } from '@/registry/new-york/ui/button'
import { Card, CardContent, CardDescription, CardTitle } from '@/registry/new-york/ui/card'
type Integration = {
name: string
description: string
image: string
alt: string
}[]
const AppIntegration = ({ integrations }: { integrations: Integration }) => {
return (
<section className='py-8 sm:py-16 lg:py-24'>
<div className='mx-auto max-w-7xl px-4 sm:px-6 lg:px-8'>
<div className='grid grid-cols-1 items-center gap-6 md:grid-cols-2'>
<div className='space-y-4'>
<h2 className='text-2xl font-semibold md:text-3xl lg:text-4xl'>
Connects with your favourite tools to boost conversions!
</h2>
<p className='text-muted-foreground text-xl'>
Harness the potential of seamless integration to boost your sales performance! Discover how connecting
your tools can lead to greater efficiency and impressive results.
</p>
<Button size='lg' className='rounded-lg text-base'>
Check all app
</Button>
</div>
<div className='space-y-6'>
{integrations.map((integration, index) => (
<Card key={index} className='bg-transparent py-4 shadow-none'>
<CardContent className='flex items-center gap-6'>
<div className='flex size-17 shrink-0 items-center justify-center rounded-md border'>
<img src={integration.image} alt={integration.alt} className='size-10' />
</div>
<div>
<CardTitle className='text-xl font-medium'>{integration.name}</CardTitle>
<CardDescription className='text-base'>{integration.description}</CardDescription>
</div>
</CardContent>
</Card>
))}
</div>
</div>
</div>
</section>
)
}
export default AppIntegration