import React from "react"; import { BoxBackground, FancyBoxSvg230x765, FancyBoxSvg281x765, FancyBoxSvg361x765, } from "@dndbeyond/character-components/es"; import { CharacterTheme, RuleData, Skill, ValueLookup, } from "@dndbeyond/character-rules-engine/es"; import { RollContext } from "@dndbeyond/pocket-dimension-dice/types"; import a11yStyles from "~/styles/accessibility.module.css"; import { StyleSizeTypeEnum } from "../../../Shared/reducers/appEnv"; import { AppEnvDimensionsState } from "../../../Shared/stores/typings"; import Skills from "../Skills"; interface Props { skills: Array; customSkills: Array; onCustomSkillClick?: (skill: Skill) => void; onSkillClick?: (skill: Skill) => void; onEmptyClick?: () => void; valueLookup: ValueLookup; dimensions: AppEnvDimensionsState; theme: CharacterTheme; diceEnabled: boolean; ruleData: RuleData; rollContext: RollContext; } export default class SkillsBox extends React.PureComponent { static defaultProps = { diceEnabled: false, }; render() { const { skills, valueLookup, customSkills, onCustomSkillClick, onSkillClick, onEmptyClick, dimensions, theme, diceEnabled, ruleData, rollContext, } = this.props; let BoxBackgroundComponent: React.ComponentType = FancyBoxSvg230x765; if (dimensions.styleSizeType > StyleSizeTypeEnum.DESKTOP) { BoxBackgroundComponent = FancyBoxSvg281x765; } if (dimensions.styleSizeType <= StyleSizeTypeEnum.TABLET) { BoxBackgroundComponent = FancyBoxSvg361x765; } return (

Skills

); } }