mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
25 lines
471 B
JavaScript
25 lines
471 B
JavaScript
import { h } from 'preact'
|
|
import { Link } from 'wouter-preact'
|
|
|
|
import {
|
|
buildPlayLinkHref,
|
|
} from '~/src/utils/utils.routing'
|
|
|
|
export default function GameEntry ({ name, ifdb, url }) {
|
|
return (
|
|
<div>
|
|
<h4>{name}</h4>
|
|
<a
|
|
target='_blank'
|
|
rel='noopener noreferrer'
|
|
href={ifdb}>
|
|
IFDB page
|
|
</a>
|
|
<span> | </span>
|
|
<Link
|
|
href={buildPlayLinkHref({ url })}>
|
|
Play
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|