UNPKG

@figlinq/react-chart-editor

Version:
2 lines 815 B
import PropTypes from"prop-types";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";const FoldEmpty=_ref=>{let{children,icon:Icon,messagePrimary,messageSecondary}=_ref;return _jsxs("div",{className:"fold__content__empty",children:[Boolean(Icon)&&_jsx("div",{className:"fold__content__empty__icon",children:_jsx(Icon,{})}),Boolean(messagePrimary)&&_jsx("div",{className:"fold__content__empty__message__primary",children:messagePrimary}),Boolean(messageSecondary)&&_jsx("div",{className:"fold__content__empty__message__secondary",children:messageSecondary}),children||null]})};export default FoldEmpty;FoldEmpty.propTypes={messagePrimary:PropTypes.string,messageSecondary:PropTypes.string,children:PropTypes.node,icon:PropTypes.oneOfType([PropTypes.node,PropTypes.func])}; //# sourceMappingURL=FoldEmpty.js.map