import * as React from "react"; import {Osztaly, OsztalyLabel} from "../domain-models/osztaly"; import {Faj, FajLabel} from "../domain-models/faj"; export interface CharacterListItemDto { id: string, name: string, szint: number, faj: Faj, osztaly: Osztaly, edition: "1e" | "2e" } function CharacterListItem(props: { character: CharacterListItemDto, }) { const {character:c} = props return <> {c.name} {c.szint}. szintű {FajLabel(c.faj)} {OsztalyLabel(c.osztaly)} } export default CharacterListItem;