1 | import { string, node, any } from 'prop-types';
|
2 | import { c as _objectWithoutPropertiesLoose, g as _extends } from './chunk-1f79df9b.js';
|
3 | import { createElement } from 'react';
|
4 | import _Navigation from './Navigation/styled.js';
|
5 |
|
6 | var Navigation = function Navigation(_ref) {
|
7 | var a11yTitle = _ref.a11yTitle,
|
8 | children = _ref.children,
|
9 | props = _objectWithoutPropertiesLoose(_ref, ["a11yTitle", "children"]);
|
10 |
|
11 | return (
|
12 | createElement(_Navigation, _extends({
|
13 | "aria-label": a11yTitle
|
14 | }, props, {
|
15 | role: props.use ? 'navigation' : props.role
|
16 | }), children)
|
17 | );
|
18 | };
|
19 | var navigationPropTypes = {
|
20 | a11yTitle: string,
|
21 | children: node.isRequired,
|
22 | className: string,
|
23 | role: string,
|
24 | use: any
|
25 | };
|
26 | Navigation.propTypes = navigationPropTypes;
|
27 | var navigationDefaultProps = {
|
28 | a11yTitle: undefined,
|
29 | className: undefined,
|
30 | role: undefined,
|
31 | use: undefined
|
32 | };
|
33 | Navigation.defaultProps = navigationDefaultProps;
|
34 | var C = Navigation;
|
35 |
|
36 | export { C as a, navigationPropTypes as b, navigationDefaultProps as c };
|