export interface PaginatedResponse<T> {
  /** Some list endpoints return records under `data` instead of `items`. */
  data?: T[];
  items: T[];
  total: number;
  page: number;
  size: number;
  pages: number;
}

export interface PaginationParams {
  page?: number;
  size?: number;
  search?: string;
  sort?: string;
  order?: "asc" | "desc";
}

export interface ApiSuccessResponse {
  success: boolean;
  message?: string;
}

export interface SelectOption {
  value: string;
  label: string;
}
