@etsoo/smarterp-core
Version:
TypeScript APIs for SmartERP Core
16 lines (15 loc) • 514 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { ComboBox } from "@etsoo/materialui";
import { useRequiredAppContext } from "../../ICoreServiceApp";
/**
* Status list component
* @param props Props
* @returns Component
*/
export function StatusList(props) {
// App
const app = useRequiredAppContext();
// Destruct
const { name = "status", label = app.get("status"), ...rest } = props;
return (_jsx(ComboBox, { name: name, label: label, options: app.getStatusList(), ...rest }));
}