import { ErrorBoundary } from '@sentry/react'; import { useKeyDown } from '../../common/hooks/useKeyDown'; import AboutPanel from './panel/about-panel/AboutPanel'; import AutomationPanel from './panel/automations-panel/AutomationPanel'; import ClientControlPanel from './panel/client-control-panel/ClientControlPanel'; import FeatureSettingsPanel from './panel/feature-settings-panel/FeatureSettingsPanel'; import GeneralPanel from './panel/general-panel/GeneralPanel'; import NetworkLogPanel from './panel/network-panel/NetworkLogPanel'; import ProjectPanel from './panel/project-panel/ProjectPanel'; import ShutdownPanel from './panel/shutdown-panel/ShutdownPanel'; import SourcesPanel from './panel/sources-panel/SourcesPanel'; import PanelContent from './panel-content/PanelContent'; import PanelList from './panel-list/PanelList'; import useAppSettingsNavigation from './useAppSettingsNavigation'; import style from './AppSettings.module.scss'; export default function AppSettings() { const { close, panel, location, setLocation } = useAppSettingsNavigation(); useKeyDown(close, 'Escape'); return (
{panel === 'project' && } {panel === 'general' && } {panel === 'feature_settings' && } {panel === 'sources' && } {panel === 'automation' && } {panel === 'client_control' && } {panel === 'about' && } {panel === 'network' && } {panel === 'shutdown' && }
); }