UNPKG

react-aria

Version:
38 lines (31 loc) 1.62 kB
import {filterDOMProps as $6a28a4717b9a4e1c$export$457c3d6518dd4c6f} from "../utils/filterDOMProps.js"; import $lVUbY$intlStringsjs from "./intlStrings.js"; import {useLocalizedStringFormatter as $1adfa757ef3cd864$export$f12b703ca79dfbb1} from "../i18n/useLocalizedStringFormatter.js"; function $parcel$interopDefault(a) { return a && a.__esModule ? a.default : a; } /* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ function $118635575f92dfb4$export$8cefe241bd876ca0(props) { let { 'aria-label': ariaLabel, ...otherProps } = props; let strings = (0, $1adfa757ef3cd864$export$f12b703ca79dfbb1)((0, ($parcel$interopDefault($lVUbY$intlStringsjs))), '@react-aria/breadcrumbs'); return { navProps: { ...(0, $6a28a4717b9a4e1c$export$457c3d6518dd4c6f)(otherProps, { labelable: true }), 'aria-label': ariaLabel || strings.format('breadcrumbs') } }; } export {$118635575f92dfb4$export$8cefe241bd876ca0 as useBreadcrumbs}; //# sourceMappingURL=useBreadcrumbs.js.map