UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

17 lines (14 loc) 820 B
import React from 'react'; import ButtonsGroup from '../Buttons/ButtonsGroup.js'; const EmptyState = ({ title, children, action, secondaryAction, image, }) => { return (React.createElement("div", { className: "cobalt-EmptyState" }, React.createElement("img", { className: "cobalt-EmptyState__Image", role: "presentation", alt: "", src: image, height: 188, width: 188 }), React.createElement("h2", { className: "cobalt-EmptyState__Title" }, title), children && React.createElement("div", { className: "cobalt-EmptyState__Body" }, children), action && (React.createElement(ButtonsGroup, { align: "center" }, React.createElement(React.Fragment, null, action, secondaryAction))))); }; export { EmptyState }; //# sourceMappingURL=index.js.map