export type SharedStoreType = {
  openSidebar: boolean;
  setOpenSidebar: (value: boolean) => void;
  hasSubMenu: boolean;
  setSubtMenu: (value: boolean) => void;
  subMenuName: string;
  setSubMenuName: (value: string) => void;
  search: string;
  setSearch: (value: string) => void;
  editorCatalogSlug: string | null;
  setEditorCatalogSlug: (slug: string | null) => void;
};

export type PagerType = {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean | null;
  nextPage: string | null;
};

export interface BaseResponse<T> {
  success: boolean;
  statusCode: number;
  status: number;
  data: T;
  meta?: {
    limit: number;
    page: number;
    total: number;
    totalPages: number;
  };
}
