Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

526 B
Raw Blame
import { shallow } from 'zustand/shallow';
import { createWithEqualityFn } from 'zustand/traditional';

import { createDevtools } from '../middleware/createDevtools';
import { expose } from '../middleware/expose';
import { type DocumentCommentState, initialState } from './initialState';

const devtools = createDevtools('documentComment');

export const useDocumentCommentStore = createWithEqualityFn<DocumentCommentState>()(
  devtools(() => initialState),
  shallow,
);

expose('documentComment', useDocumentCommentStore);