File size: 311 Bytes
35ab59c
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React, { useState } from 'react';
import { X, Plus, Minus, ShoppingBag } from 'lucide-react';

const ProductDetailModal = ({ 
  product, 
  isOpen, 
  onClose, 
  onAddToCart 
}) => {
  const [quantity, setQuantity] = useState(1);
  
  if (!isOpen || !product) return null;

  const formatPrice = (price)