import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/react";
import { useState } from "react";
import {
ButtonPrimaryFull,
ButtonSecondaryFull,
ButtonWarningFull,
} from "~/components/system/components/Buttons.js";
import { Input } from "~/components/system/components/Input.js";
import { Boundary } from "~/components/system/components/fragments/Boundary.js";
const STYLES_TRANSPARENT_BG = css`
background-color: ${Constants.semantic.bgBlurDark6};
z-index: ${Constants.zindex.modal};
width: 100vw;
height: 100vh;
position: fixed;
left: 0;
top: 0;
`;
const STYLES_MAIN_MODAL = css`
background-color: ${Constants.system.white};
width: 380px;
height: auto;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 8px;
padding: 24px;
text-align: left;
`;
const STYLES_HEADER = css`
color: ${Constants.system.black};
font-size: ${Constants.typescale.lvl1};
font-family: ${Constants.font.semiBold};
word-break: break-all;
`;
const STYLES_SUB_HEADER = css`
color: ${Constants.semantic.textGray};
font-size: ${Constants.typescale.lvl0};
font-family: ${Constants.font.text};
margin-top: 16px;
`;
const STYLES_INPUT_HEADER = css`
color: ${Constants.system.black};
font-size: ${Constants.typescale.lvlN1};
font-family: ${Constants.font.semiBold};
font-weight: bold;
margin-top: 24px;
margin-bottom: 8px;
`;
export const ConfirmationModal = (props) => {
const [isEnabled, setIsEnabled] = useState(false);
const lang = {
deleteText: "Delete",
confirmText: "Confirm",
cancelText: "Cancel",
};
const _handleChange = (e) => {
if (e.target.value === props.matchValue) {
setIsEnabled(true);
return;
}
setIsEnabled(false);
};
let deleteButton = (