From f45dee703450c42521884f8e0da8ae49f652b8c6 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 16 Dec 2022 11:22:45 +0700 Subject: item cart delete confirmation --- src/components/ConfirmAlert.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/components/ConfirmAlert.js (limited to 'src/components') diff --git a/src/components/ConfirmAlert.js b/src/components/ConfirmAlert.js new file mode 100644 index 00000000..3a8f796d --- /dev/null +++ b/src/components/ConfirmAlert.js @@ -0,0 +1,26 @@ +import { useState } from "react"; + +const ConfirmAlert = ({ + title, + caption, + show, + onClose, + onSubmit, +}) => { + return ( + <> + {show && ( +
+ )} +
+

{title}

+
+ + +
+
+ + ); +}; + +export default ConfirmAlert; \ No newline at end of file -- cgit v1.2.3