OHIF with Cornerstone3D 2.0 (#4347)
This commit is contained in:
1 parent
8981a61b8c
commit
7ce7127d7c
803 files changed
+32760
-15893
No files matched your search
@@ -0,0 +1,37 @@
|
||||
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-secondary-dark 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;
|
||||
@@ -0,0 +1,2 @@
|
||||
import NavBar from './NavBar';
|
||||
export default NavBar;
|
||||
Reference in new issue
Block a user