UNPKG

@payfit/unity-components

Version:

33 lines (32 loc) 1.06 kB
import { EmptyState as e } from "../EmptyState.js"; import { EmptyStateActions as t } from "../parts/EmptyStateActions.js"; import { EmptyStateContent as n } from "../parts/EmptyStateContent.js"; import { EmptyStateIcon as r } from "../parts/EmptyStateIcon.js"; import { forwardRef as i } from "react"; import { jsx as a, jsxs as o } from "react/jsx-runtime"; import { useIntl as s } from "react-intl"; //#region src/components/empty-state/presets/EmptyStateWaitingForData.tsx var c = i(({ title: i, description: c, actions: l, ...u }, d) => { let f = s().formatMessage({ id: "unity:component:empty-state:waiting-for-data:title", defaultMessage: "No available results yet" }); return /* @__PURE__ */ o(e, { ref: d, ...u, children: [ /* @__PURE__ */ a(r, { icon: "InfoOutlined", variant: "neutral" }), /* @__PURE__ */ a(n, { title: i || f, description: c }), l && /* @__PURE__ */ a(t, { children: l }) ] }); }); c.displayName = "EmptyStateWaitingForData"; //#endregion export { c as EmptyStateWaitingForData };