mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-22 23:48:26 -04:00
* docs * docs * doc * revert * revert * move actions to arch * docs * docssss * typo * duplicate * fix date * x * jobs * jobs * Update jobs.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update jobs.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update libraries.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update spaces.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update spaces.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update spaces.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update introduction.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update clouds.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update clouds.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update clouds.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update importing-photos.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update interface.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update jobs.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update library-setup.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update locations.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update quick-preview.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * Update quick-preview.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * changes * stuff * fix * rag stuff wip * Update docs/product/guides/importing-photos.mdx Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> * del * fixed typos/changed wording for some docs --------- Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com> Co-authored-by: 0xBA5E64 <26796481+0xBA5E64@users.noreply.github.com> Co-authored-by: myung03 <matthewyungisworking@gmail.com>
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { AppStoreLogo, AppWindow, Clock, Heart, Planet, Tag } from '@phosphor-icons/react';
|
|
import { useLibraryQuery } from '@sd/client';
|
|
import { useLocale } from '~/hooks';
|
|
|
|
import Icon from '../../SidebarLayout/Icon';
|
|
import SidebarLink from '../../SidebarLayout/Link';
|
|
|
|
export const COUNT_STYLE = `absolute right-1 min-w-[20px] top-1 flex h-[19px] px-1 items-center justify-center rounded-full border border-app-button/40 text-[9px]`;
|
|
|
|
export default function LibrarySection() {
|
|
// const labelCount = useLibraryQuery(['labels.count']);
|
|
|
|
const { t } = useLocale();
|
|
|
|
return (
|
|
<div className="space-y-0.5">
|
|
<SidebarLink to="overview">
|
|
<Icon component={Planet} />
|
|
{t('overview')}
|
|
</SidebarLink>
|
|
<SidebarLink to="recents">
|
|
<Icon component={Clock} />
|
|
{t('recents')}
|
|
{/* <div className={COUNT_STYLE}>34</div> */}
|
|
</SidebarLink>
|
|
{/* <SidebarLink to="applications">
|
|
<Icon component={AppStoreLogo} />
|
|
{t('Applications')}
|
|
</SidebarLink> */}
|
|
<SidebarLink to="favorites">
|
|
<Icon component={Heart} />
|
|
{t('favorites')}
|
|
{/* <div className={COUNT_STYLE}>2</div> */}
|
|
</SidebarLink>
|
|
{/* <SidebarLink to="labels">
|
|
<Icon component={Tag} />
|
|
{t('labels')}
|
|
<div className={COUNT_STYLE}>{labelCount.data || 0}</div>
|
|
</SidebarLink> */}
|
|
</div>
|
|
);
|
|
}
|