import React from 'react' import { useTranslation } from 'react-i18next' import { getComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions' import { getEntityErrors } from '@xrengine/engine/src/scene/components/ErrorComponent' import { InteriorComponent } from '@xrengine/engine/src/scene/components/InteriorComponent' import LocationCityIcon from '@mui/icons-material/LocationCity' import ImageInput from '../inputs/ImageInput' import InputGroup from '../inputs/InputGroup' import NumericInputGroup from '../inputs/NumericInputGroup' import Vector2Input from '../inputs/Vector2Input' import NodeEditor from './NodeEditor' import { EditorComponentType, updateProperty } from './Util' /** * Interior Editor provides the editor to customize properties. * * @type {class component} */ export const InteriorNodeEditor: EditorComponentType = (props) => { const { t } = useTranslation() const entity = props.entity const interiorComponent = getComponent(entity, InteriorComponent) const errors = getEntityErrors(props.entity, InteriorComponent) return ( {errors &&
{t('editor:properties.interior.error-url')}
}
) } InteriorNodeEditor.iconComponent = LocationCityIcon export default InteriorNodeEditor