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

By setting up OpenReplay, you'll unlock access to the following core features available under the OpenReplay free tier.

item.isDivider ? ( + Plus ) : ( ) } />
); }; export default connect(null, { upgradeScope })(SpotToOpenReplayPrompt);