1
0
mirror of https://github.com/vercel/commerce.git synced 2025-05-07 02:07:51 +00:00
2021-02-09 15:02:22 +02:00

9 lines
215 B
TypeScript

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