import { useState } from "react"; import { Button, OnboardingFlow, ThemeCustomizer, ThemeOnboardingPage, type OnboardingStep, } from "@methanium/ui"; export default function App() { const [showOnboarding, setShowOnboarding] = useState(false); const [onboardingThemeId, setOnboardingThemeId] = useState( null, ); const steps: OnboardingStep[] = [ { id: "welcome", title: "Usually the legal stuff", description: "but this is a showcase, so continue", content: <>, }, { id: "theme", title: "Customisation", description: "Let's just hope you don't get into decision paralysis", content: ( ), defaultCanContinue: false, }, ]; if (showOnboarding) return (
setShowOnboarding(false)} />
); return (
); }