import { jsx as o } from "react/jsx-runtime";
import m from "@mui/material/Skeleton";
import i from "@mui/material/Box";
function p({
  variant: n = "text",
  width: e,
  height: a,
  lines: r,
  sx: t
}) {
  return r && r > 1 ? /* @__PURE__ */ o(i, { sx: { display: "flex", flexDirection: "column", gap: 0.5, ...typeof t == "object" && !Array.isArray(t) ? t : {} }, children: Array.from({ length: r }, (l, f) => /* @__PURE__ */ o(
    m,
    {
      variant: "text",
      width: f === r - 1 ? "60%" : e ?? "100%",
      height: a
    },
    f
  )) }) : /* @__PURE__ */ o(
    m,
    {
      variant: n,
      width: e,
      height: a,
      sx: t
    }
  );
}
p.displayName = "Skeleton";
export {
  p as S
};
