@grafana/ui
Version:
Grafana Components Library
29 lines (24 loc) • 870 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
var css = require('@emotion/css');
var ThemeContext = require('../../themes/ThemeContext.cjs');
;
const EmptySearchResult = ({ children }) => {
const styles = ThemeContext.useStyles2(getStyles);
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.container, children });
};
const getStyles = (theme) => {
return {
container: css.css({
borderLeft: `3px solid ${theme.colors.info.main}`,
backgroundColor: `${theme.colors.background.secondary}`,
padding: theme.spacing(2),
minWidth: "350px",
borderRadius: theme.shape.radius.default,
marginBottom: theme.spacing(4)
})
};
};
exports.EmptySearchResult = EmptySearchResult;
//# sourceMappingURL=EmptySearchResult.cjs.map