import { SidebarNavigation } from 'decky-frontend-lib'; import { lazy } from 'react'; import { useTranslation } from 'react-i18next'; import { FaCode, FaPlug } from 'react-icons/fa'; import { useSetting } from '../../utils/hooks/useSetting'; import DeckyIcon from '../DeckyIcon'; import WithSuspense from '../WithSuspense'; import GeneralSettings from './pages/general'; import PluginList from './pages/plugin_list'; const DeveloperSettings = lazy(() => import('./pages/developer')); export default function SettingsPage() { const [isDeveloper, setIsDeveloper] = useSetting('developer.enabled', false); const { t } = useTranslation(); const pages = [ { title: t('SettingsIndex.general_title'), content: , route: '/decky/settings/general', icon: , }, { title: t('SettingsIndex.plugins_title'), content: , route: '/decky/settings/plugins', icon: , }, { title: t('SettingsIndex.developer_title'), content: ( ), route: '/decky/settings/developer', icon: , visible: isDeveloper, }, ]; return ; }