@atlaskit/navigation-system
Version:
Page layout and navigation components for Atlassian apps.
25 lines • 908 B
JavaScript
/* skip-links-content.tsx generated by @compiled/babel-plugin v3.0.4 */
import "./skip-links-content.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
const contentStyles = {
root: "_1rjcu2gc _18zrpxbi _1e0c1txw _2lx21bp4 _1pbyjh3g",
skipLinkList: "_1e0c1txw _2lx21bp4 _1x8w11lx _2mzuglyw _1pfhze3t _bozgze3t",
label: "_11c8i4vh _1rjcu2gc _syazazsu"
};
export function SkipLinksContent({
label,
titleId,
testId,
children
}) {
return /*#__PURE__*/React.createElement("div", {
className: ax([contentStyles.root])
}, label !== undefined && /*#__PURE__*/React.createElement("div", {
"data-testid": testId ? `${testId}--skip-links-container--label` : undefined,
id: titleId,
className: ax([contentStyles.label])
}, label), /*#__PURE__*/React.createElement("ol", {
className: ax([contentStyles.skipLinkList])
}, children));
}