import React from 'react'
import { useTranslation } from 'react-i18next'

import LanguageIcon from '@mui/icons-material/Language'

import { CameraPropertiesNodeEditor } from './CameraPropertiesNodeEditor'
import { FogSettingsEditor } from './FogSettingsEditor'
import { MediaSettingsEditor } from './MediaSettingsEditor'
import NodeEditor from './NodeEditor'
import { PostProcessingSettingsEditor } from './PostProcessingSettingsEditor'
import { RenderSettingsEditor } from './RenderSettingsEditor'
import { EditorComponentType } from './Util'

export const SceneNodeEditor: EditorComponentType = (props) => {
  const { t } = useTranslation()
  return (
    <NodeEditor
      {...props}
      name={t('editor:properties.scene.name')}
      description={t('editor:properties.scene.description')}
    >
      <CameraPropertiesNodeEditor />
      <PostProcessingSettingsEditor />
      <MediaSettingsEditor />
      <RenderSettingsEditor />
      <FogSettingsEditor />
    </NodeEditor>
  )
}

SceneNodeEditor.iconComponent = LanguageIcon

export default SceneNodeEditor
