'use client';

import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
import { createChickinApprovalSlice } from '@/stores/production/chickin/slices/chickin-approval.slice';
import { ChickinApprovalSlice } from '@/stores/production/chickin/slices/chickin-approval.slice';

export type ChickinStore = ChickinApprovalSlice;

export const useChickinStore = create<ChickinStore>()(
  devtools(
    (...args) => ({
      ...createChickinApprovalSlice(...args),
    }),
    {
      name: 'ChickinStore',
    }
  )
);
