synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
57 lines (56 loc) • 1.6 kB
JavaScript
import { jsx as r, jsxs as i } from "react/jsx-runtime";
import s from "../GenericCardActionButton.js";
import p from "../../utils/ConditionalWrapper.js";
import { useGetCroissantUrl as d } from "../../../synapse-queries/croissant/useGetCroissantUrl.js";
import m from "@mui/material/Link";
import l from "@mui/material/Skeleton";
import c from "@mui/material/Tooltip";
import f from "@mui/material/Typography";
function y(e) {
const { datasetId: n, datasetVersionNumber: a } = e, { data: t, isLoading: o } = d(
n,
a
);
return !t && !o ? null : /* @__PURE__ */ r(
p,
{
condition: o,
wrapper: l,
wrapperProps: { role: "progressbar" },
children: /* @__PURE__ */ r(
c,
{
placement: "top",
title: /* @__PURE__ */ i(f, { children: [
"Croissant is a metadata standard designed for AI-ready datasets. Learn more",
" ",
/* @__PURE__ */ r(
m,
{
href: "https://mlcommons.org/working-groups/data/croissant/",
target: "_blank",
rel: "noopener noreferrer",
children: "here"
}
),
"."
] }),
children: /* @__PURE__ */ r(
s,
{
href: t || "#",
target: "_blank",
variant: "outlined",
startIcon: "🥐",
children: "Croissant"
}
)
}
)
}
);
}
export {
y as default
};
//# sourceMappingURL=CroissantButton.js.map