summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/app/map/GrayContainer.js
blob: 651b3459191c625da25d842e5107cef7fdcdb209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import React from 'react'
import { useDispatch } from 'react-redux'
import { goDownOneInteractionLevel } from '../../../actions/interaction-level'
import GrayLayer from '../../../components/app/map/elements/GrayLayer'

const GrayContainer = () => {
    const dispatch = useDispatch()
    const onClick = () => dispatch(goDownOneInteractionLevel())
    return <GrayLayer onClick={onClick} />
}

export default GrayContainer