@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
19 lines (18 loc) • 850 B
JavaScript
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// tools/functional-di-enhanced-transformer/__tests__/__fixtures__/imported-interface.basic.input.tsx
import React from "react";
function ImportedInterfaceComponent(props) {
const { data, services } = props;
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", null, "Data count: ", data.length), /* @__PURE__ */ React.createElement("button", {
onClick: /* @__PURE__ */ __name(() => {
services.logger?.log("Button clicked");
services.api.refreshData();
}, "onClick")
}, "Refresh"));
}
__name(ImportedInterfaceComponent, "ImportedInterfaceComponent");
export {
ImportedInterfaceComponent
};
//# sourceMappingURL=imported-interface.basic.input.js.map