运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 lines
1.6 KiB

import { Button, Checkbox, Modal } from "@douyinfe/semi-ui";
import React from "react";
const ReminderBox = ({ title, wait, toadd, visible, onOk, close, USER}) => {
return (
<Modal
title={
<div style={{ fontSize: 14, lineHeight: "35px", marginLeft: 16 }}>
{title}
</div>
}
onCancel={() => {
close()
}}
icon={
<img
src="../../assets/images/logo/figure.png"
style={{ width: 40, height: 40 }}
/>
}
footer={
<div
style={{
width: "100%",
display: "flex",
justifyContent: "space-between",
}}
>
<Checkbox
onChange={(checked) =>{
localStorage.setItem( USER, JSON.stringify(checked.target.checked)
)
}}
aria-label="Checkbox 示例"
style={{ width: 100 }}
>
不再提醒
</Checkbox>
<div>
<Button onClick={() => close()}>{wait}</Button>
<Button theme="solid" onClick={() => onOk()}>{toadd}</Button>
</div>
</div>
}
visible={visible}
></Modal>
);
};
export default ReminderBox;