import { create } from 'zustand';
import { persist } from 'zustand/middleware';

interface PageSizeStore {
  pageSize: number;
  setPageSize: (size: number) => void;
}

export const usePageSizeStore = create<PageSizeStore>()(
  persist(
    (set) => ({
      pageSize: 10,
      setPageSize: (size: number) => set({ pageSize: size }),
    }),
    {
      name: 'igny8-page-size',
    }
  )
);

