import * as R from 'ramda' import React, { useState } from 'react' import { H2 } from '../../../../components/typography' import Graph from '../../graphs/Graph' import LegendEntry from '../LegendEntry' import classes from './wrappers.module.css' const options = [ { code: 'topMachinesTransactions', display: 'Transactions' }, { code: 'topMachinesVolume', display: 'Volume' }, ] const TopMachinesBarGraphHeader = ({ title, period, data, machines, selectedMachine, timezone, currency, }) => { const [graphType /*, setGraphType */] = useState(options[0].code) const legend = { cashIn:
, cashOut: , } return ( <>