You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. import { create } from 'zustand'
  2. import type { Dependency } from '@/app/components/plugins/types'
  3. type Shape = {
  4. dependencies: Dependency[]
  5. setDependencies: (dependencies: Dependency[]) => void
  6. }
  7. export const useStore = create<Shape>(set => ({
  8. dependencies: [],
  9. setDependencies: dependencies => set({ dependencies }),
  10. }))