Sukhpal Saini

Sukhpal Saini

I research and write about building a SaaS business that actually gets customers. Previously @IBM @Manulife.

Add a Confirm to Delete Button in Chakra UI using Typescript

Create a new component called ConfirmButton.tsx import { Box } from "@chakra-ui/layout"; import { Button, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, useDisclosure, } from "@chakra-ui/react"; import React from "react"; interface ConfirmButtonProps { onSuccessAction: () => void; headerText: string; bodyText: string; buttonText: string; isDanger?: boolean; } const ConfirmButton = ({ onSuccessAction, buttonText, head