import { Link } from 'react-router-dom'; import React, { useEffect, useState } from 'react'; import { FaChevronLeft, FaChevronRight } from 'react-icons/fa'; import { useAppStateContext } from '../../context/user.data.context'; import { getLocalStorageValue, setLocalStorageValue } from '../../utils'; const OnBoardingPopupToolTip = () => { const { user } = useAppStateContext(); const [selected, setSelected] = useState(0); const [showModal, setShowModal] = useState(true); useEffect(() => { const onBoarding = getLocalStorageValue('tooltip-onboarding'); if (onBoarding && ['skip', 'done'].includes(onBoarding)) { setShowModal(false); } }, [selected]); if (!showModal || !user || user?.step === 3) return <>; return (
{tabs?.map((_, key) => { return (
); })}

{tabs[selected].title}

{tabs[selected].description.map((desc, key) => { return (

{desc}

); })}
View
); }; export default OnBoardingPopupToolTip; interface ITab { title: string; path: string; description: string[]; } const tabs: ITab[] = [ { title: 'Dashboard', path: '/agent-analytics', description: [ 'Your command center. See how your AI recommendations are performing in real-time—from conversions to engagement.', ], }, { title: 'AI ChatBot', path: '/customization', description: [ 'Make Recomaze feel like your brand. Adjust colors, language tone, and placement of the AI assistant here.', 'From fonts to tone (“Helpful”, “Bold”, “Conversational”)—match your store vibe.', ], }, // { // title: "Recomaze App Extension", // path: "/app/extension", // description: [ // "Enable the Recomaze Extension for product and category pages. No coding needed—just toggle it on.", // "Keeps first-time visitors engaged and reduces drop-offs automatically.", // ], // }, { title: 'Support', path: '/support', description: [ 'Need help? Watch a quick video, browse setup tips, or book a free 1-on-1 call with our team.', 'Fast support, human answers, no long waits.', ], }, ];