@payfit/unity-components
Version:
23 lines (22 loc) • 729 B
JavaScript
import { Text as e } from "../../text/Text.js";
import { forwardRef as t } from "react";
import { jsx as n, jsxs as r } from "react/jsx-runtime";
//#region src/components/empty-state/parts/EmptyStateContent.tsx
var i = t(({ title: t, titleAsElement: i, description: a, ...o }, s) => !t && !a ? null : /* @__PURE__ */ r("div", {
ref: s,
className: "uy:flex uy:flex-col uy:items-center uy:gap-100 uy:text-center",
...o,
children: [t && /* @__PURE__ */ n(e, {
variant: "h4",
asElement: i,
color: "content.neutral",
children: t
}), a && /* @__PURE__ */ n(e, {
variant: "body",
color: "content.neutral.low",
children: a
})]
}));
i.displayName = "EmptyStateContent";
//#endregion
export { i as EmptyStateContent };