1
0
mirror of https://github.com/vercel/commerce.git synced 2025-05-12 12:47:50 +00:00
2021-02-08 09:15:20 +02:00

9 lines
216 B
TypeScript

import Cookies from 'js-cookie'
import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../config'
const getCheckoutId = (id?: string) => {
return id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
}
export default getCheckoutId