mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-04 16:58:05 +02:00
40 lines
1.1 KiB
React
40 lines
1.1 KiB
React
import React from "react";
|
|
import ModalUi from "../primitives/ModalUi";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
function RotateAlert(props) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<ModalUi
|
|
isOpen={props.showRotateAlert}
|
|
title={t("Rotation-alert")}
|
|
handleClose={() => props.setShowRotateAlert({ status: false, degree: 0 })}
|
|
>
|
|
<div className="p-[20px] h-full">
|
|
<p>{t("rotate-alert-mssg")}</p>
|
|
<div className="h-[1px] w-full my-[15px] bg-[#9f9f9f]"></div>
|
|
<div className="flex gap-1">
|
|
<button
|
|
onClick={() => props.handleRemoveWidgets()}
|
|
type="button"
|
|
className="op-btn op-btn-primary"
|
|
>
|
|
{t("yes")}
|
|
</button>
|
|
<button
|
|
onClick={() =>
|
|
props.setShowRotateAlert({ status: false, degree: 0 })
|
|
}
|
|
type="button"
|
|
className="op-btn op-btn-ghost shadow-md"
|
|
>
|
|
{t("no")}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</ModalUi>
|
|
);
|
|
}
|
|
|
|
export default RotateAlert;
|