import React from "react";
import {
Osztaly,
OsztalyDescription,
OsztalyLabel,
OsztalyProperties,
OsztalySpecialSkills
} from "../domain-models/osztaly";
import {Faj, SzintKorlatokFajokra} from "../domain-models/faj";
function OsztalySelector(props: {currentFaj: Faj, currentOsztaly: Osztaly, changeOsztaly: (newOsztaly: Osztaly) => void}) {
const {currentFaj, currentOsztaly, changeOsztaly} = props;
return <>
{OsztalyDescription(currentOsztaly)}
{OsztalyProperties(currentOsztaly).map(((special, i) => (- {special}
)))}
{OsztalySpecialSkills(currentOsztaly).map(skill =>
{skill.Name}
{' '}
{skill.Description}
{skill.ExtendedDescription && (
{skill.ExtendedDescription.map((ext, i) =>
(- {ext}
))}
)}
)}
>
}
export default OsztalySelector;