@payfit/unity-components
Version:
25 lines (24 loc) • 874 B
JavaScript
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 { useIntl as i } from "react-intl";
//#region src/components/action-bar/parts/ActionBarPrefixArea.tsx
var a = ({ children: a, ariaKeyshortcuts: o }) => {
let s = i(), { prefixArea: c } = e();
return /* @__PURE__ */ n(r, {
className: c(),
"aria-label": s.formatMessage({
id: "unity:component:action-bar:group:label",
defaultMessage: "Toolbar information"
}),
children: [a, o && /* @__PURE__ */ t("span", {
className: "uy:sr-only",
children: s.formatMessage({
id: "unity:component:action-bar:key-shortcuts-text",
defaultMessage: "Use {keyShortcuts} to focus the action bar"
}, { keyShortcuts: o })
})]
});
};
//#endregion
export { a as ActionBarPrefixArea };