'use client';

import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
import { createProjectFlockClosingSlice } from '@/stores/production/project-flock-closing/slices/project-flock-closing.slice';
import { ProjectFlockClosingSlice } from '@/stores/production/project-flock-closing/slices/project-flock-closing.slice';

export type ProjectFlockClosingStore = ProjectFlockClosingSlice;

export const useProjectFlockClosingStore = create<ProjectFlockClosingStore>()(
  devtools(
    (...args) => ({
      ...createProjectFlockClosingSlice(...args),
    }),
    {
      name: 'ProjectFlockClosingStore',
    }
  )
);
