UNPKG

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