import { ArrowRight } from 'lucide-react' import { useState, type ComponentType } from 'react' import { Badge, Button, cn } from 'ui' import { ChatWireframe, NotebooksWireframe, RunSqlWireframe, WelcomeWireframe, } from './ExplorerOnboardingWireframes' import { useExplorerPreferences } from '@/components/interfaces/Account/Preferences/useExplorerPreferences' const ONBOARDING_STEPS: Array<{ Wireframe: ComponentType title: string description: string isPreview?: boolean }> = [ { Wireframe: WelcomeWireframe, title: 'Welcome to Explorer', description: 'Interact with your database and logs in one place. Run SQL, save your work to notebooks, and chat with Assistant.', isPreview: true, }, { Wireframe: RunSqlWireframe, title: 'Run SQL', description: 'Run any SQL on your database, just like in the SQL Editor. You can also query your logs and chart the results.', }, { Wireframe: NotebooksWireframe, title: 'Notebooks', description: 'Snippets have evolved into notebooks. Combine multiple queries with markdown notes for you, your team, or Assistant to run later.', }, { Wireframe: ChatWireframe, title: 'Chat with your project', description: 'Ask Assistant to write queries, explain results, or build notebooks for you. Your organization’s AI settings control what it can access.', }, ] export const ExplorerOnboarding = () => { const { completeOnboarding, isReady } = useExplorerPreferences() const [stepIndex, setStepIndex] = useState(0) const step = ONBOARDING_STEPS[stepIndex] const isFirstStep = stepIndex === 0 const isLastStep = stepIndex === ONBOARDING_STEPS.length - 1 const { Wireframe } = step return (
{step.description}