"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { ShieldAlert } from "lucide-react";
import { cn } from "@open-mercato/shared/lib/utils";
function AccessDeniedMessage({ label, description, action, className, iconClassName }) {
  return /* @__PURE__ */ jsxs(
    "div",
    {
      className: cn(
        "flex items-start gap-3 rounded border border-amber-300/50 bg-amber-50/50 px-3 py-2 text-sm text-amber-900 dark:border-amber-700/50 dark:bg-amber-950/30 dark:text-amber-200",
        className
      ),
      role: "alert",
      children: [
        /* @__PURE__ */ jsx(ShieldAlert, { className: cn("h-4 w-4 flex-none", iconClassName), "aria-hidden": true }),
        /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
          /* @__PURE__ */ jsx("p", { className: "leading-tight", children: label }),
          description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description }) : null,
          action ? /* @__PURE__ */ jsx("div", { className: "pt-1", children: action }) : null
        ] })
      ]
    }
  );
}
export {
  AccessDeniedMessage
};
//# sourceMappingURL=AccessDeniedMessage.js.map
