import { useEffect } from 'react';
import { router } from '@inertiajs/react';

// Redirect to Installer/Welcome for backwards compatibility
export default function Welcome(props) {
    useEffect(() => {
        // If we're on this page, redirect to the proper installer welcome
        if (typeof window !== 'undefined') {
            window.location.href = '/install';
        }
    }, []);

    return (
        <div className="min-h-screen flex items-center justify-center">
            <p>Redirecting to installer...</p>
        </div>
    );
}
