This is a perpetual rumor that's been going on for DECADES. While PC gaming waxes & wanes in popularity over the years, PC gaming is still fairly strong... otherwise, a couple of game companies with distribution platforms (like Valve's Steam, Epic Game Store, EA's Origin, Ubisoft's uPlay, Projeckt CD Red's GoG.com / Galaxy) would be seriously suffering.
We're in a bit of a waning period of the PC gaming cycle as the appeal of console-like PC's (like the Alienware Alpha) & Steam machines have been discontinued & the more standard gaming PC has returned to more dominance, so the cost & the "experience level" of entry is going back up (to around the $1,000 mark for a high-to-midrange system, although reasonable budget-level system can be built for around $500-600) & the preferred control style is going back to keyboard & mouse over controllers (Steam Controller, XBox One / 360, ect.)
If you still want to do PC gaming, you can still do so as you can find a lot of PC game releases (including a lot of shovelware, sadly, as Steam will publish any game on their platform that complies with their regulations & pay the $100 listing fee). If you're willing to explore more experimental, indie titles, you can check out Itch.io... but be aware that quality will vary greatly.
There's too much money in PC gaming that the industry would let it die.