GA Enhanced Ecommerce to GA4 Ecommerce Converter is a Google Tag Manager Variable Template for Web.
The Template is available in the Google Tag Manager Template Gallery.
This GTM Variable creates either GA4 Events or GA4 Ecommerce Items based on the Enhanced Ecommerce Object or Google Tag Manager Variables. You can also map/rename Product Scoped Dimensions & Metrics, and map Enhanced Ecommerce Checkout to GA4 Events like add_payment_info and add_shipping_info.
Full documentation of the Template can be found on Github.