Files
commerce/framework/woocommerce/utils/get-checkout-id.ts
2021-09-18 00:51:57 +03: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