import React from 'react' import { useTranslation } from 'react-i18next' import { useComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions' import { SpotLightComponent } from '@xrengine/engine/src/scene/components/SpotLightComponent' import AdjustIcon from '@mui/icons-material/Adjust' import ColorInput from '../inputs/ColorInput' import InputGroup from '../inputs/InputGroup' import NumericInputGroup from '../inputs/NumericInputGroup' import RadianNumericInputGroup from '../inputs/RadianNumericInputGroup' import LightShadowProperties from './LightShadowProperties' import NodeEditor from './NodeEditor' import { EditorComponentType, updateProperty } from './Util' /** * SpotLightNodeEditor component class used to provide editor view for property customization. * * @type {class component} */ export const SpotLightNodeEditor: EditorComponentType = (props) => { const { t } = useTranslation() const lightComponent = useComponent(props.entity, SpotLightComponent).value return ( ) } SpotLightNodeEditor.iconComponent = AdjustIcon export default SpotLightNodeEditor