import { root as e } from "./FormErrorBanner.css.js";
import { jsx as t } from "react/jsx-runtime";
//#region src/atomic/molecules/form/FormErrorBanner.tsx
var n = ({ message: n, className: r, ...i }) => {
	let a = n?.trim();
	return a == null || a === "" ? null : /* @__PURE__ */ t("div", {
		className: [e, r].filter((e) => e != null && e !== "").join(" "),
		role: "alert",
		"aria-live": "assertive",
		...i,
		children: a
	});
};
//#endregion
export { n as FormErrorBanner, n as default };

//# sourceMappingURL=FormErrorBanner.js.map