import { IronswornActor } from '../actor/actor' ; import { HIT_TYPE } from './chatrollhelpers' ; type CallbackInput = { hitType ? : HIT_TYPE ; stat ? : string ; site ? : IronswornActor ; } ; type Callback = ( input : CallbackInput ) => string | undefined ; export const MoveContentCallbacks = { 'Delve the Depths' : ( { hitType , stat } ) => hitType === HIT_TYPE . WEAK ? ` <button class="ironsworn__delvedepths__roll" data-stat="${ stat }">
            <i class="fa fa-dice-d6"></i> ${ game . i18n . localize ( 'IRONSWORN.Roll' ) }
          </button>` : undefined , 'Reveal a Danger' : ( { site } ) => `
    <button class="ironsworn__revealdanger__roll" data-site="${ site ?. id }">
      <i class="fa fa-dice-d6"></i> ${ game . i18n . localize ( 'IRONSWORN.Roll' ) }
    </button>
  ` , Sojourn : ( { hitType } ) => hitType === HIT_TYPE . MISS ? undefined : `
        <hr>
        <p>${ game . i18n . localize ( 'IRONSWORN.MoveContents.Sojourn.extradescription' ) }</p>
        <button class="ironsworn__sojourn__extra__roll">
          <i class="fa fa-dice-d6"></i> ${ game . i18n . localize ( 'IRONSWORN.Roll' ) }
        </button>
      ` , 'Pay the Price' : ( ) => `<button class="ironsworn__paytheprice__roll">
      <i class="fa fa-dice-d6"></i> ${ game . i18n . localize ( 'IRONSWORN.Roll' ) }
    </button` } ;