@maherunlocker/custom-react-table
Version:
dynamic table based on react table v7
23 lines • 1.06 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
const react_toastify_1 = require("react-toastify");
const CheckboxIcon_1 = require("./assets/CheckboxIcon");
function SuccessToast(message) {
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: react_toastify_1.toast.success(message, {
className: 'success-toast',
position: react_toastify_1.toast.POSITION.TOP_CENTER,
autoClose: 10000,
theme: 'colored',
closeOnClick: true,
pauseOnHover: true,
draggable: true,
icon: (0, jsx_runtime_1.jsx)(CheckboxIcon_1.CheckboxIcon, { height: 25, width: 25, fill: "white" }),
}) }));
}
exports.default = SuccessToast;
//# sourceMappingURL=SuccessToast.js.map