import { Box, Heading, HStack, Text, useColorModeValue, VStack, } from '@chakra-ui/react'; import React from 'react'; import { BtnDefault, BtnRed } from './Buttons'; const DeleteConfirm = ({ title, onDismiss, onDelete, loading, type }) => { return ( {title.length > 100 ? title.substring(0, 100) + '...' : title} Are you sure you want to delete this{' '} {type === 'post' ? 'article' : 'comment'}? You cannot undo this action. {/* */} Dismiss {loading ? 'Deleting' : 'Delete'} ); }; export default DeleteConfirm;