ohif-viewer/platform/ui-next/src/components/NavBar/NavBar.tsx
Dan Rukas 9a2691a71f
fix(colors): Replaces legacy colors with ui-next colors (#5351)
* Update playwright screenshots and fix broken tests.

---------

Co-authored-by: Joe Boccanfuso <joe.boccanfuso@radicalimaging.com>
2026-02-12 08:48:05 -05:00

38 lines
692 B
TypeScript

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const stickyClasses = 'sticky top-0';
const notStickyClasses = 'relative';
const NavBar = ({
className,
children,
isSticky,
}: {
className?: string;
children?: React.ReactNode;
isSticky?: boolean;
}) => {
return (
<div
className={classnames(
'bg-popover z-20 border-black px-1',
isSticky && stickyClasses,
!isSticky && notStickyClasses,
className
)}
>
{children}
</div>
);
};
NavBar.propTypes = {
className: PropTypes.string,
children: PropTypes.node,
isSticky: PropTypes.bool,
};
export default NavBar;