@payfit/unity-components
Version:
22 lines (21 loc) • 694 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, description: i, ...a }, o) => !t && !i ? null : /* @__PURE__ */ r("div", {
ref: o,
className: "uy:flex uy:flex-col uy:items-center uy:gap-100 uy:text-center",
...a,
children: [t && /* @__PURE__ */ n(e, {
variant: "h4",
color: "content.neutral",
children: t
}), i && /* @__PURE__ */ n(e, {
variant: "body",
color: "content.neutral.low",
children: i
})]
}));
i.displayName = "EmptyStateContent";
//#endregion
export { i as EmptyStateContent };