UNPKG

@etsoo/smarterp-core

Version:
20 lines (19 loc) 622 B
import { jsx as _jsx } from "react/jsx-runtime"; import { SelectEx } from "@etsoo/materialui"; import { useRequiredAppContext } from "../../ICoreServiceApp"; /** * Supported cultures list component * @param props Props * @returns Component */ export function CultureList(props) { // App const app = useRequiredAppContext(); // Destruct const { label = app.get("culture"), name = "culture", ...rest } = props; // Layout return (_jsx(SelectEx, { label: label, name: name, options: app.settings.cultures.map((c) => ({ id: c.name, label: c.label })), ...rest })); }