@payfit/unity-components
Version:
33 lines (32 loc) • 1.74 kB
JavaScript
import { EmptyState as e } from "../EmptyState.js";
import { EmptyStateIcon as t } from "../parts/EmptyStateIcon.js";
import { EmptyStateContent as n } from "../parts/EmptyStateContent.js";
import { forwardRef as r } from "react";
import { jsx as i, jsxs as a } from "react/jsx-runtime";
import { useTranslation as o } from "react-i18next";
//#region src/core/components/empty-state/presets/EmptyStateGoodJob.tsx
var s = r(({ title: r, description: s, ...c }, l) => {
let { t: u } = o("unity"), d = u((e) => e.unity.component.emptyState.goodJob.title);
return /* @__PURE__ */ a("div", {
className: "uy:relative uy:w-full uy:min-h-[200px] uy:isolate",
children: [/* @__PURE__ */ a(e, {
ref: l,
className: "uy:relative uy:z-2",
...c,
children: [/* @__PURE__ */ i(t, {
icon: "CheckOutlined",
variant: "success"
}), /* @__PURE__ */ i(n, {
title: r || d,
description: s
})]
}), /* @__PURE__ */ i("div", {
className: "uy:absolute uy:top-0 uy:z-0 uy:left-1/2 uy:-translate-x-1/2 uy:h-full uy:pointer-events-none uy:aspect-square uy:mask-radial-at-center uy:mask-radial-from-0% uy:mask-radial-to-70%",
style: { backgroundImage: "\n repeating-linear-gradient(\n 0deg,\n #e5e7eb 0px,\n #e5e7eb 1px,\n transparent 1px,\n transparent 32px\n ),\n repeating-linear-gradient(\n 90deg,\n #e5e7eb 0px,\n #e5e7eb 1px,\n transparent 1px,\n transparent 32px\n )\n " },
"aria-hidden": "true"
})]
});
});
s.displayName = "EmptyStateGoodJob";
//#endregion
export { s as EmptyStateGoodJob };