import e from "./Snackbar.js";
import { useMemo as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region src/components/feedback/ErrorSnackbar.tsx
var r = ({ error: r }) => /* @__PURE__ */ n(e, {
	message: t(() => r ? typeof r == "string" ? r : r instanceof Error ? r.message : "An unexpected error occurred." : null, [r]),
	variant: "error",
	duration: 4e3,
	position: "bottom-center",
	show: !!r
});
//#endregion
export { r as default };
