forked from crowetic/commerce
9 lines
211 B
TypeScript
9 lines
211 B
TypeScript
import Cookies from 'js-cookie'
|
|
import { SWELL_CHECKOUT_ID_COOKIE } from '../const'
|
|
|
|
const getCheckoutId = (id?: string) => {
|
|
return id ?? Cookies.get(SWELL_CHECKOUT_ID_COOKIE)
|
|
}
|
|
|
|
export default getCheckoutId
|