4
0
forked from crowetic/commerce
2021-03-02 21:05:13 -06: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