import React from 'react' import { RendererState } from '@xrengine/engine/src/renderer/RendererState' import InfiniteGridHelper from '@xrengine/engine/src/scene/classes/InfiniteGridHelper' import { getState, useHookstate } from '@xrengine/hyperflux' import GridOnIcon from '@mui/icons-material/GridOn' import NumericStepperInput from '../../inputs/NumericStepperInput' import { InfoTooltip } from '../../layout/Tooltip' import * as styles from '../styles.module.scss' const GridTool = () => { const rendererState = useHookstate(getState(RendererState)) const onToggleGridVisible = () => { rendererState.gridVisibility.set(!rendererState.gridVisibility.value) } const onChangeGridHeight = (value) => { InfiniteGridHelper.instance.setGridHeight(value) } return (
) } export default GridTool