2020-04-13 12:59:58 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
import { Icon } from '@ohif/ui';
|
|
|
|
|
|
2020-04-21 20:12:34 +02:00
|
|
|
const ThumbnailNoImage = ({ description, seriesDate, modality, onClick }) => {
|
2020-04-13 12:59:58 +02:00
|
|
|
return (
|
2020-04-14 00:35:32 +02:00
|
|
|
<div
|
|
|
|
|
className="flex flex-row flex-1 px-4 py-3 cursor-pointer"
|
|
|
|
|
onClick={onClick}
|
|
|
|
|
>
|
|
|
|
|
<div className="flex flex-2 pl-2 pr-3">
|
2020-04-13 12:59:58 +02:00
|
|
|
<Icon name="list-bullets" className="text-secondary-light" />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex flex-col flex-1">
|
|
|
|
|
<div className="flex flex-row flex-1 items-center mb-2">
|
|
|
|
|
<div className="px-4 bg-primary-main rounded-sm mr-4 text-xl text-white">
|
2020-04-21 20:12:34 +02:00
|
|
|
{modality}
|
2020-04-13 12:59:58 +02:00
|
|
|
</div>
|
|
|
|
|
<span className="text-blue-300 text-base">{seriesDate}</span>
|
|
|
|
|
</div>
|
2020-04-21 20:12:34 +02:00
|
|
|
<div className="text-white text-base">{description}</div>
|
2020-04-13 12:59:58 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2020-04-21 20:12:34 +02:00
|
|
|
ThumbnailNoImage.propTypes = {
|
|
|
|
|
description: PropTypes.string.isRequired,
|
|
|
|
|
modality: PropTypes.string.isRequired,
|
|
|
|
|
seriesDate: PropTypes.string.isRequired,
|
2020-04-14 00:35:32 +02:00
|
|
|
onClick: PropTypes.func.isRequired,
|
2020-04-13 12:59:58 +02:00
|
|
|
};
|
|
|
|
|
|
2020-04-21 20:12:34 +02:00
|
|
|
export default ThumbnailNoImage;
|