mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
27 lines
647 B
TypeScript
27 lines
647 B
TypeScript
import { AllPagesIcon, FavouritesIcon, TrashIcon } from '@blocksuite/icons';
|
|
|
|
export const config = (currentWorkspaceId: string) => {
|
|
const List = [
|
|
{
|
|
title: 'All pages',
|
|
href: `/workspace/${currentWorkspaceId ? currentWorkspaceId : 'all'}/all`,
|
|
icon: AllPagesIcon,
|
|
},
|
|
{
|
|
title: 'Favourites',
|
|
href: `/workspace/${
|
|
currentWorkspaceId ? currentWorkspaceId : 'all'
|
|
}/favorite`,
|
|
icon: FavouritesIcon,
|
|
},
|
|
{
|
|
title: 'Trash',
|
|
href: `/workspace/${
|
|
currentWorkspaceId ? currentWorkspaceId : 'all'
|
|
}/trash`,
|
|
icon: TrashIcon,
|
|
},
|
|
];
|
|
return List;
|
|
};
|