import { ToastContentProps } from 'react-toastify'; export function SplitButtons({ closeToast }: ToastContentProps) { return ( // using a grid with 3 columns

提示

有未保存的内容,是否继续打开?

{/* that's the vertical line which separate the text and the buttons*/}
{/*specifying a custom closure reason that can be used with the onClose callback*/}
{/*specifying a custom closure reason that can be used with the onClose callback*/}
); } // toast(SplitButtons, { // closeButton: false, // className: 'p-0 w-[400px] border border-purple-600/40', // ariaLabel: 'Email received', // onClose: (reason) => { // if (reason === 'success') { // set({ open: true, selectedNode: data, hasEdited: false }); // } // }, // });