import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; import { useScrollToCenter } from '../../useScrollToCenter'; import PlanCard from './PlanCard'; import { useService } from './useService'; import Wrapper from '../Wrapper'; import { encryptUrlParams } from '@/utils/requestCrypto'; export function Pricing() { const { t } = useTranslation(); const navigate = useNavigate(); const { plans, selectedPlanId, setSelectedPlanId } = useService(); const scrollRef = useScrollToCenter(); return (

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

{t('pages.home.pricing.subtitle')}

{plans.map((plan) => ( setSelectedPlanId(plan.id)} onGetStarted={async () => { const d = await encryptUrlParams({ planId: plan.id }); navigate(`/pricing?d=${d}`); }} /> ))}
); }