'use client'; import React, { useState } from 'react'; interface DeleteConfirmModalProps { open: boolean; ingredientName: string; onClose: () => void; onConfirm: () => Promise; } export default function DeleteConfirmModal({ open, ingredientName, onClose, onConfirm }: DeleteConfirmModalProps) { const [deleting, setDeleting] = useState(false); if (!open) return null; const handleDelete = async () => { setDeleting(true); await onConfirm(); setDeleting(false); }; return (

Delete Ingredient

Are you sure you want to delete {ingredientName}? This action cannot be undone.

); }