import { SettingsType } from 'app/reducers/StateTypes' ; import Roleplay from '../roleplay/Roleplay' ; import { ParserNode } from '../TemplateTypes' ; import { StateProps as StatePropsBase } from './Types' ; export interface StateProps extends StatePropsBase { maxTier : number ; seed : string ; questID : string ; } export interface DispatchProps { onChoice : ( node : ParserNode , settings : SettingsType , index : number , maxTier : number , seed : string ) => void ; onRetry : ( ) => void ; onReturn : ( ) => void ; } export interface Props extends StateProps , DispatchProps { } export default function midCombatRoleplay ( props ) { return Roleplay ( { node : props . node , questID : props . questID , onChoice : ( settings , node , index ) => { props . onChoice ( props . node , settings , index , props . maxTier , props . seed ) ; } , onRetry : ( ) => { props . onRetry ( ) ; } , onReturn : ( ) => { props . onReturn ( ) ; } , settings : props . settings , } , 'dark' ) ; }