18 lines
471 B
TypeScript
18 lines
471 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import { FunctionComponent } from 'react';
|
||
|
|
import { useParams } from 'react-router';
|
||
|
|
import { Context } from '../context/context';
|
||
|
|
|
||
|
|
const GamePage: FunctionComponent<{ context: Context }> = ({ context }) => {
|
||
|
|
let params = useParams<{gameId : string}>();
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
Game Route {params.gameId}
|
||
|
|
<style jsx>{`
|
||
|
|
|
||
|
|
`}</style>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
export default GamePage;
|