@empoleon/spotlight
Version:
Command center components for react and Empoleon
31 lines (27 loc) • 1.09 kB
JavaScript
;
var web = require('solid-js/web');
var core = require('@empoleon/core');
var Spotlight_context = require('./Spotlight.context.cjs');
var Spotlight_module = require('./Spotlight.module.css.cjs');
var solidJs = require('solid-js');
const defaultProps = {};
const SpotlightEmpty = core.factory(_props => {
const props = core.useProps("SpotlightEmpty", defaultProps, _props);
const [local, others] = solidJs.splitProps(props, ["className", "style", "classNames", "styles", "ref"]);
const ctx = Spotlight_context.useSpotlightContext();
return web.createComponent(core.Box, web.mergeProps({
ref(r$) {
var _ref$ = local.ref;
typeof _ref$ === "function" ? _ref$(r$) : local.ref = r$;
}
}, () => ctx.getStyles("empty", {
classNames: local.classNames,
styles: local.styles,
className: local.className,
style: local.style
}), others));
});
SpotlightEmpty.classes = Spotlight_module;
SpotlightEmpty.displayName = "@empoleon/spotlight/SpotlightEmpty";
exports.SpotlightEmpty = SpotlightEmpty;
//# sourceMappingURL=SpotlightEmpty.cjs.map