import React from 'react'; import { Modal, Button, List, Divider } from 'antd'; import { CircleDot, Play, TrendingUp, Radio, Sparkles, Plug, ArrowRight, } from 'lucide-react'; import { useHistory } from 'react-router-dom'; import { onboarding } from 'App/routes'; import { useStore } from 'App/mstore'; import { useTranslation } from 'react-i18next'; interface SpotToOpenReplayPromptProps { isVisible: boolean; onCancel: () => void; } function SpotToOpenReplayPrompt({ isVisible, onCancel, }: { isVisible: boolean; onCancel: () => void; }) { const { userStore } = useStore(); const history = useHistory(); const { t } = useTranslation(); const features = [ { icon: , text: t('Spot'), noBorder: true }, { isDivider: true }, { icon: , text: t('Session Replay & DevTools') }, { icon: , text: t('Product Analytics') }, { icon: , text: t('Co-Browsing (Live Session Replay & Customer Support)'), }, { icon: , text: t('AI Powered Features') }, { icon: , text: t('Integrations & more') }, ]; const onUpgrade = () => { userStore.upgradeScope().then(() => { history.push(onboarding()); onCancel(); }); }; return ( {t('Cancel')} , , ]} >

{t( "By setting up OpenReplay, you'll unlock access to the following core features available under the OpenReplay free tier.", )}

item.isDivider ? ( {t('+ Plus')} ) : ( ) } />
); } export default SpotToOpenReplayPrompt;