@hitachivantara/uikit-react-lab
Version:
Contributed React components to UI Kit by the community.
16 lines (15 loc) • 526 B
JavaScript
import { useClasses } from "./Empty.styles.js";
import { HvEmptyState } from "@hitachivantara/uikit-react-core";
import { jsx } from "react/jsx-runtime";
import { useNodes } from "reactflow";
//#region src/Flow/Empty/Empty.tsx
var HvFlowEmpty = ({ className, ...others }) => {
const { classes, cx } = useClasses();
const nodes = useNodes();
return !nodes || (nodes.length === 0 ? /* @__PURE__ */ jsx(HvEmptyState, {
className: cx(classes.root, className),
...others
}) : null);
};
//#endregion
export { HvFlowEmpty };