at the end of the day, it was inevitable

This commit is contained in:
Mo Elzubeir
2022-12-09 08:36:26 -06:00
commit 1218570914
1768 changed files with 887087 additions and 0 deletions
@@ -0,0 +1,25 @@
import React from 'react'
import PropTypes from 'prop-types'
export class SourceIcon extends React.Component {
static propTypes = {
type: PropTypes.string.isRequired
};
acceptedTypes = ['blogs', 'clippings', 'forums', 'mixed', 'news', 'prints', 'socials', 'user-added', 'user-comments', 'videos'];
render () {
const { type } = this.props
if (!this.acceptedTypes.includes(type)) {
return null
}
return (
<img src={require('../../../../../../images/feed-type-' + type + '.png')} className="source-icon" />
)
}
}
export default SourceIcon