diff --git a/packages/core-data/src/components/MediaGallery.js b/packages/core-data/src/components/MediaGallery.js index c16e5451..41ef9f89 100644 --- a/packages/core-data/src/components/MediaGallery.js +++ b/packages/core-data/src/components/MediaGallery.js @@ -1,11 +1,15 @@ // @flow -import * as Dialog from '@radix-ui/react-dialog'; import Viewer from '@samvera/clover-iiif/viewer'; -import { X } from 'lucide-react'; import React from 'react'; +import Modal from './Modal'; type Props = { + /** + * Class name to append to the root element. + */ + className?: string, + /** * URL of the IIIF manifest to render. */ @@ -21,46 +25,27 @@ type Props = { * This component renders a IIIF Viewer for the passed MediaContent record. */ const MediaGallery = (props: Props) => ( - - - - -
- { props.manifestUrl && ( - - )} -
- - - -
-
-
+
+ { props.manifestUrl && ( + + )} +
+ ); export default MediaGallery;