mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import { Box } from '@material-ui/core';
|
|
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
export const PlayerListItem: React.FC<{ player: any }> = ({ player }) => (
|
|
<Box>
|
|
{player.username}
|
|
<Link to={`/player/${player.id}`}>
|
|
<button type="button">View player</button>
|
|
</Link>
|
|
</Box>
|
|
);
|