import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';

/**
 * @deprecated Clerk legacy component. No longer used in Logto flow.
 */
export const OrganizationSelector: React.FC = () => {
    const navigate = useNavigate();

    useEffect(() => {
        navigate('/', { replace: true });
    }, [navigate]);

    return null;
};
