@atlaskit/atlassian-navigation
Version:
A horizontal navigation component for Atlassian products.
24 lines (22 loc) • 738 B
JavaScript
/** @jsx jsx */
import { css, jsx } from '@emotion/react';
import { buttonHeight, gridSize } from '../../common/constants';
import { useTheme } from '../../theme';
var paddingAll = gridSize / 2;
var skeletonStyles = css({
display: 'inline-flex',
width: '68px',
height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
borderRadius: "".concat(gridSize / 2, "px"),
opacity: 0.15
});
// Not exported to consumers, only used in NavigationSkeleton
// eslint-disable-next-line @repo/internal/react/require-jsdoc
export var PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
var theme = useTheme();
return jsx("div", {
style: theme.mode.skeleton,
css: skeletonStyles,
className: props.className
});
};