mirror of
https://github.com/vercel/commerce.git
synced 2025-06-16 04:11:22 +00:00
16 lines
260 B
TypeScript
16 lines
260 B
TypeScript
'use client';
|
|
|
|
interface Props {
|
|
id: number;
|
|
}
|
|
|
|
const CartButton: React.FC<Props> = ({ id }) => {
|
|
const handleClick = () => {
|
|
console.log('click', id);
|
|
};
|
|
|
|
return <button onClick={handleClick}>Add To Cart 1</button>;
|
|
};
|
|
|
|
export default CartButton;
|