import { jsx as r } from "react/jsx-runtime";
import { useMemo as c } from "react";
import { T as d } from "./toast-container.js";
import { T as a } from "./toast-item.js";
const f = (s = []) => s.map((o, t) => ({
  ...o,
  id: o.id ?? t
})), l = ({
  container: s,
  containerProps: o,
  options: t = [],
  placement: i,
  position: m,
  ...n
}) => {
  const p = c(() => f(t), [t]);
  return s ? /* @__PURE__ */ r(d, { ...o, placement: i, position: m, children: p.map(({ id: e, ...T }) => /* @__PURE__ */ r(a, { ...T }, e)) }) : /* @__PURE__ */ r(a, { ...n });
};
l.displayName = "BRL.Toast";
export {
  l as T
};
//# sourceMappingURL=toast.js.map
