@brizy/ui
Version:
React elements in Brizy style
13 lines (12 loc) • 579 B
JavaScript
import React from "react";
import { Icon } from "../Icon";
import { Empty } from "../icons";
import { TypographyTitle } from "../Typography";
import { BRZ_PREFIX } from "../constants";
export const NoItems = ({ heading, children }) => {
return (React.createElement("div", { className: `${BRZ_PREFIX}-noitems` },
React.createElement(Icon, { size: "130px", source: Empty }),
heading && (React.createElement("div", { className: `${BRZ_PREFIX}-noitems__heading` },
React.createElement(TypographyTitle, { level: 2 }, heading))),
children));
};