UNPKG

@payfit/unity-components

Version:

19 lines (18 loc) • 749 B
import { actionBar as e } from "../ActionBar.variants.js"; import { jsx as t, jsxs as n } from "react/jsx-runtime"; import { Group as r } from "react-aria-components/Group"; import { useTranslation as i } from "react-i18next"; //#region src/core/components/action-bar/parts/ActionBarPrefixArea.tsx var a = ({ children: a, ariaKeyshortcuts: o }) => { let { t: s } = i("unity"), { prefixArea: c } = e(); return /* @__PURE__ */ n(r, { className: c(), "aria-label": s((e) => e.unity.component.actionBar.group.label), children: [a, o && /* @__PURE__ */ t("span", { className: "uy:sr-only", children: s((e) => e.unity.component.actionBar.keyShortcutsText, { keyShortcuts: o }) })] }); }; //#endregion export { a as ActionBarPrefixArea };