PJS
P J Sharma
Payment Modal - Copy this React, Tailwind Component to your project
The Shipping Address section should appear above the Billing Address section. The Billing Address section should include a "Same as Shipping Address" button. When this button is clicked, the Billing Address fields should be auto-filled with the values from the Shipping Address fields. Implement a toggle functionality: When showBilling = true, the Shipping Address section should be hidden (showShipping = false). When showShipping = true, the Billing Address section should be hidden (showBilling = false). At any given time, only one of these sections should be visible, while the other is collapsed or hidden.
Prompt