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