import React from 'react'
import R from 'ramda'
import classNames from 'classnames'
import {Link} from 'react-router-dom'
import {encodeRuleName} from './rules'
import {capitalise0} from '../utils'
let treatValue = data =>
data == null
? '?'
: typeof data == 'boolean'
? {true: 'oui', false: 'non'}[data]
: !isNaN(data) ? Math.round(+data*100)/100 : data
export let NodeValue = ({data}) => (
{treatValue(data)}
)
let NodeValuePointer = ({data}) => (
←