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