const React = require('react'); const PropTypes = require('prop-types'); const classnames = require('classnames'); const Icon = require('stremio-icons/dom'); const Button = require('stremio/common/Button'); const PlayIconCircleCentered = require('stremio/common/PlayIconCircleCentered'); const styles = require('./styles'); const ICON_FOR_TYPE = Object.assign(Object.create(null), { 'movie': 'ic_movies', 'series': 'ic_series', 'channel': 'ic_channels', 'tv': 'ic_tv', 'other': 'ic_movies' }); const Notification = ({ className, id, type, name, logo, poster, season, episode, released, posterThumbnail, onClick }) => { const [aLogo, setALogo] = React.useState(logo); const daysAgo = Math.floor(Math.abs((Date.now() - released) / (24 * 60 * 60 * 1000))); return ( ); } Notification.propTypes = { className: PropTypes.string, id: PropTypes.string, type: PropTypes.string, name: PropTypes.string, logo: PropTypes.string, poster: PropTypes.string, season: PropTypes.number, episode: PropTypes.number, released: PropTypes.instanceOf(Date), posterThumbnail: PropTypes.bool, onClick: PropTypes.func }; module.exports = Notification;