8 |
Ready to create an app?
9 |
Start with Ionic UI Components
10 |
11 | );
12 | };
13 |
14 | export default ExploreContainer;
15 |
--------------------------------------------------------------------------------
/src/composables/useConfirmationAlert.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { IonAlert } from "@ionic/react";
3 |
4 | const useConfirmationAlert = () => {
5 | const [showAlert, setShowAlert] = useState(false);
6 | const [alertMessage, setAlertMessage] = useState("");
7 | const [confirmAction, setConfirmAction] = useState<() => void>();
8 |
9 | const showConfirmationAlert = (
10 | message: React.SetStateAction