Switch is quite "near" X1/PS4 graphics. But by next gen time that won't be enough to get ports.
X1 is like 1,2 TF and next gen on 12-15TF level (less than that would be low considering X1X already cross 6TF), I know TF isn't all but just as generic measuring the gap we can stay on it. So if Switch Pro or Switch 2 only get inside 1,2-1,6 TF level of processing power/graphics it won't receive AAA 3rd party (not that it even needs, AA and Indies would be enough to fill the gaps on Nintendo releasing schedule).
More important than reaching near X1 or PS4 level of graphic would be similar tech of PS5 and X2, because not using similar tech (even if a lot less powered) would be worse on the scalability and porting than the pure power gap.
As long as PS4 and XBO are getting ports, Switch will also get ports as the extra cost is more than outweighted by the extra sales. If the Next-Gen consoles release late next year, it would mean that support is guaranteed until at least 2023, at which point the Switch would be over 6 years old and sales should start to drop anyway by then. I'm expecting a successor for 2024-2025 anyway, so it wouldn't matter much in any which way.
The Nintendo eShop rating Thread: http://gamrconnect.vgchartz.com/thread.php?id=237454