mod tiles and nsfw blurring

This commit is contained in:
SpikeHD
2022-07-23 20:33:36 -07:00
parent d97e5c192f
commit 95267720a4
5 changed files with 105 additions and 25 deletions

View File

@@ -1 +1,26 @@
export {}
import React from 'react'
import { ModData } from '../../../utils/gamebanana'
import './ModTile.css'
interface IProps {
mod: ModData
}
export class ModTile extends React.Component<IProps, never> {
constructor(props: IProps) {
super(props)
}
render() {
const { mod } = this.props
return (
<div className="ModListItem">
<span className="ModName">{mod.name}</span>
<img src={mod.images[0]} className={mod.nsfw ? 'nsfw' : ''} />
<div className="ModInner"></div>
</div>
)
}
}