+
-
+
{modalities}
{numInstances}
+ {StudyMenuItems && (
+
+
+
+ )}
@@ -61,7 +68,7 @@ const StudyItem = ({
onThumbnailDoubleClick={onDoubleClickThumbnail}
onClickUntrack={onClickUntrack}
viewPreset={viewPreset}
- onThumbnailContextMenu={onThumbnailContextMenu}
+ ThumbnailMenuItems={ThumbnailMenuItems}
/>
)}
@@ -75,7 +82,6 @@ StudyItem.propTypes = {
description: PropTypes.string,
modalities: PropTypes.string.isRequired,
numInstances: PropTypes.number.isRequired,
- trackedSeries: PropTypes.number,
isActive: PropTypes.bool,
onClick: PropTypes.func.isRequired,
isExpanded: PropTypes.bool,
@@ -85,6 +91,8 @@ StudyItem.propTypes = {
onDoubleClickThumbnail: PropTypes.func,
onClickUntrack: PropTypes.func,
viewPreset: PropTypes.string,
+ StudyMenuItems: PropTypes.func,
+ StudyInstanceUID: PropTypes.string,
};
export { StudyItem };
diff --git a/platform/ui-next/src/components/Thumbnail/Thumbnail.tsx b/platform/ui-next/src/components/Thumbnail/Thumbnail.tsx
index 1baba4cbd4f..40134a3a5fa 100644
--- a/platform/ui-next/src/components/Thumbnail/Thumbnail.tsx
+++ b/platform/ui-next/src/components/Thumbnail/Thumbnail.tsx
@@ -5,13 +5,6 @@ import { useDrag } from 'react-dnd';
import { Icons } from '../Icons';
import { DisplaySetMessageListTooltip } from '../DisplaySetMessageListTooltip';
import { TooltipTrigger, TooltipContent, Tooltip } from '../Tooltip';
-import { Button } from '../Button';
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
-} from '../DropdownMenu';
/**
* Display a thumbnail for a display set.
@@ -34,12 +27,12 @@ const Thumbnail = ({
viewPreset = 'thumbnails',
modality,
isHydratedForDerivedDisplaySet = false,
+ isTracked = false,
canReject = false,
onReject = () => {},
- isTracked = false,
thumbnailType = 'thumbnail',
onClickUntrack = () => {},
- onThumbnailContextMenu,
+ ThumbnailMenuItems = () => {},
}: withAppTypes): React.ReactNode => {
// TODO: We should wrap our thumbnail to create a "DraggableThumbnail", as
// this will still allow for "drag", even if there is no drop target for the
@@ -134,44 +127,11 @@ const Thumbnail = ({