{"version":3,"file":"chunk.DHpd7Raw.js","sources":["../../src/components/pages/gifts/giftTypeSelector/GiftTypeSelector.tsx"],"sourcesContent":["import { Link } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport giftCards from '@/assets/images/gift-cards.png';\nimport giftTravelImg from '@/assets/images/gift-travel-pack.png';\nimport useRoutes from '@/hooks/useRoutes';\nimport styles from './GiftTypeSelector.module.scss';\nimport { useAppSelector } from '@/hooks/useRedux';\nimport getSelectedPlan from '@/utils/getSelectedPlan';\n\ninterface IProps {\n itemBackground?: string;\n isFromGift?: boolean;\n}\n\nconst GiftTypeSelector = ({ itemBackground = '#ffffff', isFromGift = false }: IProps) => {\n const planId = useAppSelector((state) => state.plan.currentPlan);\n const { isAloyPlan } = getSelectedPlan(planId);\n const { routes } = useRoutes();\n const { t } = useTranslation();\n\n return (\n
{t('giftTravelTitle')}
\n{t('giftTravelDescription')}
\n {isFromGift ? t('buy') : t('giftTravelButton')}\n{t('giftCardTitle')}
\n{isAloyPlan ? t('aloyGiveCardDesc') : t('giveCardDesc')}
\n {isFromGift ? t('buy') : t('giftCardButton')}\n