Add GameEntry component

This commit is contained in:
He4eT 2021-03-04 03:16:20 +05:00
commit 9e4e101495
5 changed files with 96 additions and 5 deletions

View file

@ -0,0 +1,22 @@
import { h } from 'preact'
import { Link } from 'wouter-preact'
import {
buildPlayLinkHref
} from '~/src/utils/utils.routing'
export default ({ name, ifdb, url, theme }) => (
<div>
<h4>{name}</h4>
<a
target='_blank'
href={ifdb}>
IFDB page
</a>
<span> | </span>
<Link
href={buildPlayLinkHref({ url, theme })}>
Play
</Link>
</div>
)