settings-modal.tsx 889 B

12345678910111213141516171819202122232425262728293031
  1. import OLModal, {
  2. OLModalBody,
  3. OLModalHeader,
  4. OLModalTitle,
  5. } from '@/features/ui/components/ol/ol-modal'
  6. import { useLayoutContext } from '@/shared/context/layout-context'
  7. import { useTranslation } from 'react-i18next'
  8. import { SettingsModalBody } from './settings-modal-body'
  9. const SettingsModal = () => {
  10. // TODO ide-redesign-cleanup: Either rename the field, or introduce a separate
  11. // one
  12. const { leftMenuShown, setLeftMenuShown } = useLayoutContext()
  13. const { t } = useTranslation()
  14. return (
  15. <OLModal
  16. show={leftMenuShown}
  17. onHide={() => setLeftMenuShown(false)}
  18. size="lg"
  19. >
  20. <OLModalHeader closeButton>
  21. <OLModalTitle>{t('settings')}</OLModalTitle>
  22. </OLModalHeader>
  23. <OLModalBody className="ide-settings-modal-body">
  24. <SettingsModalBody />
  25. </OLModalBody>
  26. </OLModal>
  27. )
  28. }
  29. export default SettingsModal