mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +00:00
9 lines
201 B
TypeScript
9 lines
201 B
TypeScript
import Cookies from 'js-cookie'
|
|
import { REACTION_CART_ID_COOKIE } from '../const'
|
|
|
|
const getCartId = (id?: string) => {
|
|
return id ?? Cookies.get(REACTION_CART_ID_COOKIE)
|
|
}
|
|
|
|
export default getCartId
|