Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
import { useLocation } from 'react-router';
import { getNavSectionForPath, getSectionNavTabs } from '../../../../server/lib/navManifest.js';
import SectionTabsHeader from '../ui/SectionTabsHeader';
import { useInstanceFeatures } from '../../hooks/useInstanceFeatures.js';
// Backward-compatible wrapper for the shared section child nav. Settings.jsx
// hosts the in-Settings tabs (general/backup/etc.) and standalone pages such as
// Prompts host themselves; the current route resolves the actual parent section
// so a moved page does not keep rendering the old parent's tabs.
//
// The manifest owns this list. Keep the export for Settings tests and callers
// that enumerate the section, but never hand-maintain a second route list.
export const TABS = getSectionNavTabs('Settings');
export default function SettingsTabsHeader({ activeTab }) {
const { pathname } = useLocation();
const { isFeatureEnabled } = useInstanceFeatures();
const section = getNavSectionForPath(pathname) || 'Settings';
const visibleTabs = getSectionNavTabs(section).filter((tab) => isFeatureEnabled(tab.feature));
return <SectionTabsHeader tabs={visibleTabs} activeTab={activeTab} fallbackSection={section} />;
}