import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { useResponsive } from '@/hooks/useResponsive'; import PlanCard from '../PlanCard'; import OrderSummary from '../OrderSummary'; import { useAction } from './useAction'; import { useService } from './useService'; const PricingContent = memo(() => { const { t } = useTranslation(); const { isMobile } = useResponsive(); const { selectedPlanId, handlePlanClick } = useAction(); const { plans } = useService(); const selectedPlan = plans.find((plan) => plan.id === selectedPlanId) || null; return (

{t('pages.pricing.title')}

{t('pages.pricing.step3')} {t('pages.pricing.step3Title')}

{t('pages.pricing.description')}

{t('pages.pricing.currencyNote')}

{plans.map((plan) => ( handlePlanClick(plan.id)} /> ))}
); }); PricingContent.displayName = 'PricingContent'; export default PricingContent;