@payfit/unity-components
Version:
30 lines (29 loc) • 1.03 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 { EmptyStateActions as r } from "../parts/EmptyStateActions.js";
import { forwardRef as i } from "react";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
import { useTranslation as s } from "react-i18next";
//#region src/core/components/empty-state/presets/EmptyStateWaitingForData.tsx
var c = i(({ title: i, description: c, actions: l, ...u }, d) => {
let { t: f } = s("unity"), p = f((e) => e.unity.component.emptyState.waitingForData.title);
return /* @__PURE__ */ o(e, {
ref: d,
...u,
children: [
/* @__PURE__ */ a(t, {
icon: "InfoOutlined",
variant: "neutral"
}),
/* @__PURE__ */ a(n, {
title: i || p,
description: c
}),
l && /* @__PURE__ */ a(r, { children: l })
]
});
});
c.displayName = "EmptyStateWaitingForData";
//#endregion
export { c as EmptyStateWaitingForData };