import { Alert, AlertDescription, AlertTitle } from "../ui/alert.js";
import { c } from "react/compiler-runtime";
import React from "react";
import { jsx, jsxs } from "react/jsx-runtime";
var ErrorAlert_default = (o) => {
	let s = c(3), { error: l } = o;
	if (!l) return null;
	let u;
	s[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ jsx(AlertTitle, { children: "Error" }), s[0] = u) : u = s[0];
	let d;
	return s[1] === l ? d = s[2] : (d = /* @__PURE__ */ jsxs(Alert, {
		variant: "destructive",
		className: "mb-4",
		children: [u, /* @__PURE__ */ jsx(AlertDescription, { children: l })]
	}), s[1] = l, s[2] = d), d;
};
export { ErrorAlert_default as default };
