mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Add GameEntry component
This commit is contained in:
parent
a7603a4cf8
commit
9e4e101495
5 changed files with 96 additions and 5 deletions
22
src/components/GameEntry/GameEntry.jsx
Normal file
22
src/components/GameEntry/GameEntry.jsx
Normal 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>
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue