import React, { Component } from 'react'
// import { Paper, Typography } from '@material-ui/core'
import Images from '../../assets/Images'
import { GridList, Paper, Typography, GridListTile, FormControl, FormControlLabel, Radio } from '@material-ui/core'
export default class StrategiMap extends Component {
constructor(props) {
super(props)
this.state = {
dataStrategy: this.props.data.strategy_map.category,
radioValue: true
}
}
componentDidMount() {
console.log(this.props.data.strategy_map);
}
render() {
return (
this.setState({ radioValue: true })} />} label="Actual vs Prev. Month" />
this.setState({ radioValue: false })} />} label="YOY" />
{this.state.dataStrategy.map((item, index) => {
return (
{item.nodes.length < 1 ?
:
item.nodes.map((items, indexs) => {
return (
{items.item_name}
{items.is_higher_actual == '-' ?
{'-'}
:

}
{'vs'}
{this.state.radioValue ? 'Last Month' : 'YOY'}
)
})}
)
})}
{/*
Part Service Rate
{'vs'}
{'Last Month'}
CSI (Customer Satisfactiomn Index)
{'vs'}
{'Last Month'}
Dealer Productivity
{'vs'}
{'Last Month'}
INTERNAL BUSINESS PROCESS PERSPECTIVE
NSI (Network Satisfaction Index)
{'vs'}
{'Last Month'}
DEP (Dealer Evaluation Program)
{'vs'}
{'Last Month'}
AEP (AHASS Evaluation Program)
{'vs'}
{'Last Month'}
TPAT
{'vs'}
{'Last Month'}
*/}
)
}
}