import React from "react"; import { ThemeButton } from "../common/Button"; interface Props { onPactChoose: () => void; onSpellChoose: () => void; isSpellSlotAvailable: boolean; isPactSlotAvailable: boolean; doesSpellSlotExist: boolean; doesPactSlotExist: boolean; } export default class SpellSlotChooser extends React.PureComponent { render() { const { onPactChoose, onSpellChoose, doesSpellSlotExist, doesPactSlotExist, isSpellSlotAvailable, isPactSlotAvailable, } = this.props; return (
{doesSpellSlotExist && ( Spell Slot )} {doesPactSlotExist && ( Pact Slot )}
); } }