import { jsx as d } from "react/jsx-runtime";
import { Paper as m, Box as p } from "@mui/material";
import { CardType as r } from "../types.js";
import { mergeSx as n } from "../../Util/style.js";
function b({
  children: e,
  cardType: o = r.Detailed,
  variant: l = "box",
  containerRef: t = void 0,
  sx: i = {}
}) {
  const a = {
    minWidth: 320,
    p: 2,
    borderRadius: 1,
    ...o === r.Detailed ? {
      border: "1px solid",
      borderColor: "divider"
    } : {}
  };
  return l === "paper" ? /* @__PURE__ */ d(m, { ref: t, elevation: 0, sx: a, children: e }) : /* @__PURE__ */ d(
    p,
    {
      ref: t,
      sx: n(
        a,
        {
          display: "flex",
          alignItems: o === r.AvatarOnly ? "center" : "flex-start",
          gap: 2
        },
        i || null
      ),
      children: e
    }
  );
}
export {
  b as default
};
