import AppLogoIcon from '@/components/app-logo-icon'; import { cn } from '@/lib/utils'; import { type PropsWithChildren, useEffect, useState } from 'react'; interface OnboardingLayoutProps { currentStep: number; totalSteps: number; stepKey: string; align?: 'start' | 'center'; } export default function OnboardingLayout({ children, currentStep, totalSteps, stepKey, align = 'start', }: PropsWithChildren) { const [isVisible, setIsVisible] = useState(false); useEffect(() => { setIsVisible(false); const timer = setTimeout(() => setIsVisible(true), 50); return () => clearTimeout(timer); }, [stepKey]); return (
{Array.from({ length: totalSteps }).map((_, index) => (
))}
{children}
); }