import { makeStyles } from '@material-ui/core' import { Formik, Form, Field } from 'formik' import * as R from 'ramda' import React from 'react' import ErrorMessage from 'src/components/ErrorMessage' import Stepper from 'src/components/Stepper' import { Button } from 'src/components/buttons' import { NumberInput } from 'src/components/inputs/formik' import { Info2, H4, P, Info1, Label1 } from 'src/components/typography' import cassetteOne from 'src/styling/icons/cassettes/cashout-cassette-1.svg' import cassetteTwo from 'src/styling/icons/cassettes/cashout-cassette-2.svg' import { ReactComponent as WarningIcon } from 'src/styling/icons/warning-icon/comet.svg' import styles from './WizardStep.styles' const useStyles = makeStyles(styles) const WizardStep = ({ name, step, schema, error, lastStep, onContinue, steps, fiatCurrency, options }) => { const classes = useStyles() const label = lastStep ? 'Finish' : 'Next' const cassetesArtworks = { 1: cassetteOne, 2: cassetteTwo } return (
{name}
{step <= 2 && (
{steps.map( ({ type, display, component }, idx) => 1 + idx === step && (

Edit {display}

Choose bill denomination
0 ? component : NumberInput } fullWidth decimalPlaces={0} name={type} options={options} valueProp={'code'} getLabel={R.path(['display'])}> {fiatCurrency}
) )} cassette
)} {step === 3 && (

Edit 0-conf Limit

Choose a limit
{fiatCurrency}
)} {lastStep && (
Cash-out Bill Count

When enabling cash-out, your bill count will be automatically set to zero. Make sure you physically put cash inside the cash cassettes to allow the machine to dispense it to your users. If you already did, make sure you set the correct cash-out bill count for this machine on your Cash Cassettes tab under Maintenance.

Default Commissions

When enabling cash-out, default commissions will be set. To change commissions for this machine, please go to the Commissions tab under Settings where you can set exceptions for each of the available cryptocurrencies.

{error && Failed to save}
)}
) } export default WizardStep