import { Navigate, useParams } from 'react-router-dom';

/**
 * Legacy redirect for campaign details
 * Redirects /marketing/campaigns/:id -> /marketing/newsletter/campaigns/:id
 */
export function LegacyCampaignRedirect() {
    const { id } = useParams();
    return <Navigate to={`/marketing/newsletter/campaigns/${id}`} replace />;
}
