In TOS Kirk and crew took shore leave on a planet were things they imagine became reality. I haven’t watched this episode in several years. Were the creations of objects and people on the shore leave planet actual physical objects composed of ordinary matter, or were they like objects on the holodeck and composed of photonic holomatter? IMO, it would be easier to recreate people and beings with holomatter. The planet's caretaker might have replicator technology too. Perhaps the shoreleave planet is kind of like a large-scale holodeck and has holoemitters or perhaps one large holofield. The reading of people’s thoughts is reminiscent of the reading of Riker’s mind by Barash’s thought scanners in "Future Imperfect”. If the shore leave planet employed holomatter and replicator tech, this wasn’t the first time humans and Starfleet encountered these technologies. The crew of the NX-01 encountered an alien ship with a holodeck and the automated space station with replicators in ENT. Whatever the case, the planet is never seen again onscreen and is never mentioned in TNG and beyond. Most people in the Federation and surrounding worlds seem to take their vacations on Risa. The shoreleave planet makes an appearance in TAS too, but that’s it.