mirror of
https://github.com/vercel/commerce.git
synced 2025-05-02 07:47:50 +00:00
15 lines
236 B
TypeScript
15 lines
236 B
TypeScript
import {
|
|
addItem,
|
|
removeItem,
|
|
updateItemQuantity,
|
|
redirectToCheckout,
|
|
} from './actions'
|
|
|
|
const handleCheckout = async () => {
|
|
try {
|
|
await redirectToCheckout()
|
|
} catch (e) {
|
|
console.error('Checkout error:', e)
|
|
}
|
|
}
|