forked from crowetic/commerce
11 lines
273 B
TypeScript
11 lines
273 B
TypeScript
import Cookies from 'js-cookie'
|
|
import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../const'
|
|
|
|
const getCheckoutId = (id?: string) => {
|
|
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE)
|
|
console.log(checkoutID)
|
|
return checkoutID
|
|
}
|
|
|
|
export default getCheckoutId
|