import {
  toastState
} from "./chunk-D3PPAC3Z.js";

// src/components/Toast/Toaster.tsx
import { useEffect } from "react";
import { Toaster as SonnerToaster } from "sonner";
import { jsx } from "react/jsx-runtime";
var Toaster = ({
  position = "top-right",
  closeButton = true,
  expand = false,
  duration = 4e3,
  visibleToasts = 3,
  gap = 8
}) => {
  useEffect(() => {
    toastState.showCloseButton = closeButton;
  }, [closeButton]);
  return /* @__PURE__ */ jsx(
    SonnerToaster,
    {
      position,
      closeButton: false,
      expand,
      duration,
      visibleToasts,
      gap
    }
  );
};
Toaster.displayName = "Toaster";

export {
  Toaster
};
//# sourceMappingURL=chunk-COLSJNQD.js.map
