@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
32 lines (31 loc) • 1.07 kB
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
import ButtonsGroup from "../Buttons/ButtonsGroup.js";
const EmptyState = ({ title, children, action, secondaryAction, image })=>/*#__PURE__*/ jsxs("div", {
className: "cobalt-EmptyState",
children: [
/*#__PURE__*/ jsx("img", {
className: "cobalt-EmptyState__Image",
alt: "",
src: image,
height: 188,
width: 188
}),
/*#__PURE__*/ jsx("h2", {
className: "cobalt-EmptyState__Title",
children: title
}),
children && /*#__PURE__*/ jsx("div", {
className: "cobalt-EmptyState__Body",
children: children
}),
action && /*#__PURE__*/ jsxs(ButtonsGroup, {
align: "center",
children: [
action,
secondaryAction
]
})
]
});
export { EmptyState };
//# sourceMappingURL=index.js.map