Lumen & Gesso / website · lumengesso.com / app / checkout / page.tsx
| 1 | import { redirect } from 'next/navigation'; |
| 2 | import Link from 'next/link'; |
| 3 | import { physicalCheckoutEnabled } from '../lib/free-studio-checkout'; |
| 4 | import LegacyCheckout from './LegacyCheckout'; |
| 5 | |
| 6 | export const dynamic = 'force-dynamic'; |
| 7 | |
| 8 | export default function CheckoutPage() { |
| 9 | if (physicalCheckoutEnabled()) return <LegacyCheckout />; |
| 10 | |
| 11 | redirect('/studio'); |
| 12 | return ( |
| 13 | <div className="checkout"> |
| 14 | <div className="checkout__card"> |
| 15 | <h1 className="checkout__title">Physical checkout is paused</h1> |
| 16 | <p className="checkout__sub">You can still create, edit, and download digital artwork in Free Studio. No payment is required.</p> |
| 17 | <Link href="/studio" className="btn btn--rose btn--lg btn--block">Open Free Studio</Link> |
| 18 | <p className="checkout__fineprint">Already paid for a print? <Link href="/orders">View your order</Link> or see our <Link href="/refund-policy">refund policy</Link>.</p> |
| 19 | </div> |
| 20 | </div> |
| 21 | ); |
| 22 | } |