import { jsx as t } from "@emotion/react/jsx-runtime";
import { Link as s } from "react-router-dom";
import { Skeleton as m, Link as h } from "@mui/material";
import { useModuleSkeleton as l } from "@m4l/core";
const x = (e) => {
  const { to: o, children: n, skeletonWidth: i = "100%", skeletonHeight: r = "14px", ...k } = e;
  return l() ? /* @__PURE__ */ t(m, { variant: "text", width: i, height: r }) : /* @__PURE__ */ t(h, { component: s, to: o, ...k, children: n });
};
export {
  x as LinkWithRoute
};
