import React from "react"; import styled from "styled-components"; import Button, { Size, Category } from "components/ads/Button"; import { Text, TextType } from "design-system"; import { Variant } from "components/ads/common"; import { DELETE_CONFIRMATION_MODAL_TITLE, DELETE_CONFIRMATION_MODAL_SUBTITLE, } from "@appsmith/constants/messages"; import Dialog from "components/ads/DialogComponent"; import { Classes } from "@blueprintjs/core"; import { Colors } from "constants/Colors"; const StyledDialog = styled(Dialog)` && .${Classes.DIALOG_BODY} { padding-top: 0px; } `; const LeftContainer = styled.div` text-align: left; `; const ImportButton = styled(Button)<{ disabled?: boolean }>` height: 30px; width: 81px; pointer-events: ${(props) => (!!props.disabled ? "none" : "auto")}; `; const ButtonWrapper = styled.div` display: flex; justify-content: end; margin-top: 20px; & > a { margin: 0 4px; } `; type DeleteConfirmationProps = { username?: string | null; name?: string | null; isOpen: boolean; onClose: () => void; onConfirm: () => void; isDeletingUser: boolean; }; function DeleteConfirmationModal(props: DeleteConfirmationProps) { const { isDeletingUser, isOpen, name, onClose, onConfirm, username } = props; return ( {DELETE_CONFIRMATION_MODAL_SUBTITLE(name || username)} ); } export default DeleteConfirmationModal;