Look At This Marvel:

With this you will never have to import type { ButtonProps } from './Button' ever again! Just import { Button } from './Button' and voila! Component <Button /> and Props Button.Props are right there.
Isn’t it smart?
…
Well yes it is and that is exactly the problem!
You see, in software development SMART usually means COMPLICATED and if i have learned anything over the years it is that COMPLICATED means BAD.
And this code is smart and complicated for so many reasons!!
1. You Hardly Ever Import Props Directly
Seriously, how often do you actually need to import the props from outside the component file? Maybe twice a year? Forcing every file to bend to this “smart” import logic is like carrying an umbrella every day because it once rained in 2017.
2. Every Developer And Their Mum Will Ask “Why?”
Yeah, it’s clever. For about 5 minutes. Then you realize nobody will remember two months from now why the Button has a mysterious namespace. “Props” isn’t just a type anymore, it’s an easter egg with a riddle.
3. Weird Edge Cases
Have you tried assigning namespaces to an object?

Well lets keep this short, it doesn’t work. So when you ever run into this, you will have to solve this in an even more complicated way… Congrats!
4. Even LLMs don’t get it
As this code is unusual LLMs will not get it and will definitely not start writing it themselves unless you add a rule for it. Just like devs, LLMs work better with what’s idiomatic. (Idiomatic means: Writing code the way locals would—not like a tourist with a guidebook.)
As Grug once said “complexity very, very bad”
The truth is, the best devs don’t add complexity, they remove it. Being able to write smart code, but then not doing it. That is true wisdom. With smart code you will get: More bugs, more questions, more dependence, more confusion, more time spent reading code and more time spent explaining your idiocy to LLMs…
Let my pain be your warning! Do yourself a favor and write your Props the boring way. In fact, write all your code the boring way. Your future self will thank you!