Files
spacedrive/interface/app/$libraryId/Layout/Sidebar/Contents.tsx
Jamie Pine e0b813e054 UI tweaks*
- Switched default Media View to squares
- Removed Media View item rounded
- Removed debug sidebar item
- Grey'd out non-functional empty
screens (I'd like to add)
- Removed junk on Overview
- Removed ring effect on buttons
2023-04-21 00:58:50 -07:00

69 lines
1.7 KiB
TypeScript

import {
ArchiveBox,
Broadcast,
CirclesFour,
CopySimple,
Crosshair,
Eraser,
FilmStrip,
MonitorPlay,
Planet
} from 'phosphor-react';
import { 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 disabled to="spaces">
<Icon component={CirclesFour} />
Spaces
</SidebarLink>
<SidebarLink disabled to="media">
<Icon component={MonitorPlay} />
Media
</SidebarLink>
<SidebarLink disabled to="spacedrop">
<Icon component={Broadcast} />
Spacedrop
</SidebarLink>
<SidebarLink disabled to="imports">
<Icon component={ArchiveBox} />
Imports
</SidebarLink>
</div>
{library && <LibrarySection />}
<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>
);
};