wip
This commit is contained in:
@@ -4,9 +4,11 @@ import { createJSONStorage, persist } from 'zustand/middleware';
|
||||
interface SidebarState {
|
||||
feeds: boolean;
|
||||
chats: boolean;
|
||||
communities: boolean;
|
||||
integrations: boolean;
|
||||
toggleFeeds: () => void;
|
||||
toggleChats: () => void;
|
||||
toggleCommunities: () => void;
|
||||
toggleIntegrations: () => void;
|
||||
}
|
||||
|
||||
@@ -15,9 +17,11 @@ export const useSidebar = create<SidebarState>()(
|
||||
(set) => ({
|
||||
feeds: true,
|
||||
chats: false,
|
||||
communities: true,
|
||||
integrations: true,
|
||||
toggleFeeds: () => set((state) => ({ feeds: !state.feeds })),
|
||||
toggleChats: () => set((state) => ({ chats: !state.chats })),
|
||||
toggleCommunities: () => set((state) => ({ communities: !state.communities })),
|
||||
toggleIntegrations: () => set((state) => ({ integrations: !state.integrations })),
|
||||
}),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user