import React, { useContext } from "react" import ReactDOM from "react-dom" import { Link, Route, Routes, useParams } from "react-router-dom" import { AppContext } from "../appContext" import PlayerCharacter from "./PlayerCharacter" const PlayerListView = () => { const params = useParams() const { state } = useContext(AppContext) const character = params.name ? state.playerCharacters[params.name] : null return (
{character ? : null }
); } export default PlayerListView