Skip to content

Instantly share code, notes, and snippets.

View CesarGMEFA's full-sized avatar
🧐

César Mejias CesarGMEFA

🧐
View GitHub Profile
"use client";
import { ShoppingCart } from "lucide-react";
import { CartStore, useCartStore } from "@/lib/store/cart";
import { useStore } from "@/lib/store/useStore";
type Props = {};
export default function HeaderCart({}: Props) {
const cartStore = useStore<CartStore, CartStore>(
useCartStore,
(state: any) => state