UNPKG

mirador

Version:

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.

23 lines (20 loc) 638 B
import PropTypes from 'prop-types'; import Typography from '@mui/material/Typography'; import IIIFThumbnail from '../containers/IIIFThumbnail'; /** */ export function SidebarIndexThumbnail({ canvas, height = undefined, label, width = undefined }) { return ( <> <div style={{ minWidth: 50 }}> <IIIFThumbnail label={label} resource={canvas} maxHeight={height} maxWidth={width} /> </div> <Typography>{label}</Typography> </> ); } SidebarIndexThumbnail.propTypes = { canvas: PropTypes.object.isRequired, height: PropTypes.number, label: PropTypes.string.isRequired, width: PropTypes.number, };