UNPKG

@drivy/cobalt

Version:

Opinionated design system for Drivy's projects.

10 lines (7 loc) 665 B
import { jsxs, jsx } from 'react/jsx-runtime'; import ButtonsGroup from '../Buttons/ButtonsGroup.js'; const EmptyState = ({ title, children, action, secondaryAction, image, }) => { return (jsxs("div", { className: "cobalt-EmptyState", children: [jsx("img", { className: "cobalt-EmptyState__Image", alt: "", src: image, height: 188, width: 188 }), jsx("h2", { className: "cobalt-EmptyState__Title", children: title }), children && jsx("div", { className: "cobalt-EmptyState__Body", children: children }), action && (jsxs(ButtonsGroup, { align: "center", children: [action, secondaryAction] }))] })); }; export { EmptyState }; //# sourceMappingURL=index.js.map