@etsoo/smarterp-core
Version:
TypeScript APIs for SmartERP Core
17 lines (16 loc) • 553 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { SelectEx } from "@etsoo/materialui";
import { useRequiredAppContext } from "../../ICoreServiceApp";
/**
* Document kind list component
* @param props Props
* @returns Component
*/
export function DocumentKindList(props) {
// App
const app = useRequiredAppContext();
// Destruct
const { label = app.get("templateKind"), name = "kind", ...rest } = props;
// Layout
return (_jsx(SelectEx, { label: label, name: name, options: app.core.getDocumentKinds(), ...rest }));
}