"use client";
import { jsx } from "react/jsx-runtime";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { Notice } from "./Notice.js";
function ErrorNotice({ title, message, action }) {
  const t = useT();
  const defaultTitle = title ?? t("ui.errors.defaultTitle", "Something went wrong");
  const defaultMessage = message ?? t("ui.errors.defaultMessage", "Unable to load data. Please try again.");
  return /* @__PURE__ */ jsx(Notice, { variant: "error", title: defaultTitle, message: defaultMessage, action });
}
export {
  ErrorNotice
};
//# sourceMappingURL=ErrorNotice.js.map
