import type { FC } from 'react'
import {
CartProvider as CommerceCartProvider,
useCart as useCommerceCart,
} from '@lib/commerce/cart'
import type { Cart } from '../api/cart'
export type { Cart }
export const CartProvider: FC = ({ children }) => {
return (
{children}
)
}
export function useCart() {
const cart = useCommerceCart()
// TODO: Do something to make this prop work
cart.isEmpty = true
return cart
}