mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
'use client';
|
|
|
|
import { useCartCount } from '#/components/cart-count-context';
|
|
|
|
export function CartCount({ initialCartCount }: { initialCartCount: number }) {
|
|
const [count] = useCartCount(initialCartCount);
|
|
return <span>{count}</span>;
|
|
}
|