import React from 'react' import { useTranslation } from 'react-i18next' import { useComponent, useOptionalComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions' import { CloudComponent } from '@xrengine/engine/src/scene/components/CloudComponent' import { ErrorComponent } from '@xrengine/engine/src/scene/components/ErrorComponent' import CloudIcon from '@mui/icons-material/Cloud' import ColorInput from '../inputs/ColorInput' import ImageInput from '../inputs/ImageInput' import InputGroup from '../inputs/InputGroup' import Vector2Input from '../inputs/Vector2Input' import Vector3Input from '../inputs/Vector3Input' import NodeEditor from './NodeEditor' import { EditorComponentType, updateProperty } from './Util' /** * Clouds Editor provides the editor to customize properties. * * @type {class component} */ export const CloudsNodeEditor: EditorComponentType = (props) => { const { t } = useTranslation() const cloudComponent = useComponent(props.entity, CloudComponent) const hasError = !!useOptionalComponent(props.entity, ErrorComponent) return ( {hasError &&
{t('editor:properties.clouds.error-url')}
}
) } CloudsNodeEditor.iconComponent = CloudIcon export default CloudsNodeEditor