Files
spacedrive/interface/app/$libraryId/Layout/Sidebar/sections/Debug/index.tsx
Brendan Allan 408499229b Sync settings page (#2460)
sync settings page
2024-05-07 07:39:22 +00:00

36 lines
928 B
TypeScript

import { ArrowsClockwise, Cloud, Database, Factory, ShareNetwork } from '@phosphor-icons/react';
import { useFeatureFlag } from '@sd/client';
import Icon from '../../SidebarLayout/Icon';
import SidebarLink from '../../SidebarLayout/Link';
import Section from '../../SidebarLayout/Section';
export default function DebugSection() {
const debugRoutes = useFeatureFlag('debugRoutes');
if (!debugRoutes) return <></>;
return (
<Section name="Debug">
<div className="space-y-0.5">
<SidebarLink to="debug/sync">
<Icon component={ArrowsClockwise} />
Sync
</SidebarLink>
<SidebarLink to="debug/cloud">
<Icon component={Cloud} />
Cloud
</SidebarLink>
<SidebarLink to="debug/cache">
<Icon component={Database} />
Cache
</SidebarLink>
<SidebarLink to="debug/p2p/overview">
<Icon component={ShareNetwork} />
P2P
</SidebarLink>
</div>
</Section>
);
}