@wavelengthusaf/components 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5051,8 +5051,7 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
5051
5051
  import { Button as Button5, IconButton as IconButton6, Snackbar as Snackbar3 } from "@mui/material";
5052
5052
  import React32 from "react";
5053
5053
  import CloseIcon4 from "@mui/icons-material/Close";
5054
- function TestSnackbar({ openProp, toggleOpen }) {
5055
- const [open, setOpen] = React32.useState(openProp);
5054
+ function TestSnackbar({ openProp, toggleOpen, Sbduration }) {
5056
5055
  const handleClose = (event, reason) => {
5057
5056
  if (reason === "clickaway") {
5058
5057
  return;
@@ -5060,7 +5059,7 @@ function TestSnackbar({ openProp, toggleOpen }) {
5060
5059
  toggleOpen(false);
5061
5060
  };
5062
5061
  const action = /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Button5, { color: "secondary", size: "small", onClick: handleClose }, "UNDO"), /* @__PURE__ */ React32.createElement(IconButton6, { size: "small", "aria-label": "close", color: "inherit", onClick: handleClose }, /* @__PURE__ */ React32.createElement(CloseIcon4, { fontSize: "small" })));
5063
- return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Snackbar3, { open: openProp, autoHideDuration: 6e3, onClose: handleClose, message: "Note archived", action }));
5062
+ return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(Snackbar3, { open: openProp, autoHideDuration: Sbduration, onClose: handleClose, message: "Note archived", action }));
5064
5063
  }
5065
5064
  export {
5066
5065
  AceOfSpadesComponent,