import { complete } from '@/actions/App/Http/Controllers/OnboardingController'; import { StepButton } from '@/components/onboarding/step-button'; import { dashboard } from '@/routes'; import { __ } from '@/utils/i18n'; import { router } from '@inertiajs/react'; import { PartyPopper } from 'lucide-react'; import { useState } from 'react'; export function StepComplete() { const [isRedirecting, setIsRedirecting] = useState(false); const handleComplete = () => { setIsRedirecting(true); router.post( complete.url(), {}, { onSuccess: () => { router.visit(dashboard().url); }, onError: () => { setIsRedirecting(false); }, }, ); }; return (
{__( 'Your accounts are ready and your data is securely encrypted.\n Welcome to Whisper Money!', )}
{__('Encryption Set')}
{__('Accounts Created')}
{__('Data Imported')}