mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-14 12:48:29 -04:00
* new icons, location online indicator UI, etc * hol up * tag n ball --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
64 lines
1.6 KiB
TypeScript
64 lines
1.6 KiB
TypeScript
import {
|
|
ArchiveBox,
|
|
ArrowsClockwise,
|
|
Broadcast,
|
|
CopySimple,
|
|
Crosshair,
|
|
Eraser,
|
|
FilmStrip,
|
|
Planet
|
|
} from 'phosphor-react';
|
|
import { LibraryContextProvider, useClientContext } from '@sd/client';
|
|
import { SubtleButton } from '~/components/SubtleButton';
|
|
import Icon from './Icon';
|
|
import { LibrarySection } from './LibrarySection';
|
|
import SidebarLink from './Link';
|
|
import Section from './Section';
|
|
|
|
export default () => {
|
|
const { library } = useClientContext();
|
|
|
|
return (
|
|
<div className="no-scrollbar mask-fade-out flex grow flex-col overflow-x-hidden overflow-y-scroll pb-10">
|
|
<div className="space-y-0.5">
|
|
<SidebarLink to="overview">
|
|
<Icon component={Planet} />
|
|
Overview
|
|
</SidebarLink>
|
|
{/* <SidebarLink to="spacedrop">
|
|
<Icon component={Broadcast} />
|
|
Spacedrop
|
|
</SidebarLink>
|
|
<SidebarLink to="imports">
|
|
<Icon component={ArchiveBox} />
|
|
Imports
|
|
</SidebarLink> */}
|
|
</div>
|
|
{library && (
|
|
<LibraryContextProvider library={library}>
|
|
<LibrarySection />
|
|
</LibraryContextProvider>
|
|
)}
|
|
<Section name="Tools" actionArea={<SubtleButton />}>
|
|
<SidebarLink disabled to="duplicate-finder">
|
|
<Icon component={CopySimple} />
|
|
Duplicate Finder
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="lost-and-found">
|
|
<Icon component={Crosshair} />
|
|
Find a File
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="cache-cleaner">
|
|
<Icon component={Eraser} />
|
|
Cache Cleaner
|
|
</SidebarLink>
|
|
<SidebarLink disabled to="media-encoder">
|
|
<Icon component={FilmStrip} />
|
|
Media Encoder
|
|
</SidebarLink>
|
|
</Section>
|
|
<div className="grow" />
|
|
</div>
|
|
);
|
|
};
|