@payfit/unity-components
Version:
33 lines (32 loc) • 1.05 kB
JavaScript
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/EmptyStateUpgradeRequired.tsx
var c = i(({ title: i, description: c, actions: l, ...u }, d) => {
let f = s().formatMessage({
id: "unity:component:empty-state:upgrade-required:title",
defaultMessage: "Upgrade required"
});
return /* @__PURE__ */ o(e, {
ref: d,
...u,
children: [
/* @__PURE__ */ a(r, {
icon: "LockOutlined",
variant: "neutral"
}),
/* @__PURE__ */ a(n, {
title: i || f,
description: c
}),
l && /* @__PURE__ */ a(t, { children: l })
]
});
});
c.displayName = "EmptyStateUpgradeRequired";
//#endregion
export { c as EmptyStateUpgradeRequired };