diff --git a/src/app/[name]/cart/page.tsx b/src/app/[name]/cart/page.tsx new file mode 100644 index 0000000..faed11d --- /dev/null +++ b/src/app/[name]/cart/page.tsx @@ -0,0 +1,104 @@ +'use client'; + +import Button from '@/components/button/PrimaryButton'; +import { ScrollArea } from '@/components/ui/scrollarea'; +import { useReceiptStore } from '@/zustand/receiptStore'; +import { motion } from 'framer-motion'; +import { Trash } from 'iconsax-react'; +import { PlusIcon, MinusIcon } from 'lucide-react'; +import React from 'react' + +type Props = object + +const CartIndex = ({ }: Props) => { + const quantity = useReceiptStore(state => state.items[0]?.quantity || 0); + const increment = useReceiptStore(state => state.increment); + const decrement = useReceiptStore(state => state.decrement); + + + return ( +