ChatGPT should also list its code sources, and licenses for those sources. Either way, the author must still own the copyright for the application overall. Just because I use React in my application, doesn't mean Facebook owns my applicatio