elseifplayer/src/components/GameEntry/GameEntry.jsx
2021-03-25 21:15:04 +05:00

23 lines
400 B
JavaScript

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