UNPKG

@payfit/unity-components

Version:

30 lines (29 loc) • 1.04 kB
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/EmptyStateNoSearchResults.tsx var c = i(({ title: i, description: c, actions: l, ...u }, d) => { let { t: f } = s("unity"), p = f((e) => e.unity.component.emptyState.noSearchResults.title); return /* @__PURE__ */ o(e, { ref: d, ...u, children: [ /* @__PURE__ */ a(t, { icon: "MagnifyingGlassOutlined", variant: "neutral" }), /* @__PURE__ */ a(n, { title: i || p, description: c }), l && /* @__PURE__ */ a(r, { children: l }) ] }); }); c.displayName = "EmptyStateNoSearchResults"; //#endregion export { c as EmptyStateNoSearchResults };