mirror of
https://github.com/vercel/commerce.git
synced 2025-04-25 12:27:50 +00:00
9 lines
203 B
TypeScript
9 lines
203 B
TypeScript
import Cookies from 'js-cookie'
|
|
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
|
|
|
|
const getCheckoutId = (id?: string) => {
|
|
return id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
|
|
}
|
|
|
|
export default getCheckoutId
|