UNPKG

@etsoo/smarterp-core

Version:

TypeScript APIs for SmartERP Core

20 lines (19 loc) 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentKindList = DocumentKindList; const jsx_runtime_1 = require("react/jsx-runtime"); const materialui_1 = require("@etsoo/materialui"); const ICoreServiceApp_1 = require("../../ICoreServiceApp"); /** * Document kind list component * @param props Props * @returns Component */ function DocumentKindList(props) { // App const app = (0, ICoreServiceApp_1.useRequiredAppContext)(); // Destruct const { label = app.get("templateKind"), name = "kind", ...rest } = props; // Layout return ((0, jsx_runtime_1.jsx)(materialui_1.SelectEx, { label: label, name: name, options: app.core.getDocumentKinds(), ...rest })); }