oriyo_next/src/widgets/promotions-section.tsx
2025-05-03 02:33:06 +05:00

37 lines
1.2 KiB
TypeScript

'use client';
import { Gift } from 'lucide-react';
import { Discounts } from '@/app/api-utlities/@types/index';
import { Container } from '@/shared/components/container';
import PromotionSlider from '@/shared/components/promotion-slider';
import { useTextController } from '@/shared/language/hooks/use-text-controller';
interface PromotionsSectionProps {
discounts: Discounts;
}
export const PromotionsSection = ({ discounts }: PromotionsSectionProps) => {
const { t } = useTextController();
return (
<section id='promotions' className='bg-gray-50'>
<Container>
<div className='mb-12 flex flex-col items-center justify-center text-center'>
<div className='mb-4 inline-flex items-center justify-center rounded-full bg-red-100 p-2'>
<Gift className='h-6 w-6 text-red-600' />
</div>
<h2 className='mb-4 text-3xl font-bold tracking-tight sm:text-4xl'>
{t('home.promotions.title')}
</h2>
<p className='max-w-2xl text-gray-600'>
{t('home.promotions.description')}
</p>
</div>
<PromotionSlider discounts={discounts} />
</Container>
</section>
);
};