"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require$$0 = require("react/jsx-runtime");
const react = require("../../_vendor/@legendapp/state/react.cjs");
const tv = require("./tv.cjs");
const coreStore = require("../../stores/core-store.cjs");
const BlockError = react.observer(function BlockError2(props) {
  const { children } = props;
  const error = react.use$(coreStore.coreStore$.error);
  const tv$1 = tv.BlockErrorTv();
  if (!error) return null;
  return /* @__PURE__ */ require$$0.jsx("div", { className: tv$1.root(), children: /* @__PURE__ */ require$$0.jsx("div", { className: tv$1.message(), children: children?.(error) }) });
});
exports.BlockError = BlockError;
//# sourceMappingURL=block-error.cjs.map
