export type TPageSizeOption = number

export type TPaginationModel = {
  page?: number
  per_page?: TPageSizeOption
  with_paginate?: 'yes' | 'no'
}

export type TSearch = {
  id?: number
  city_id?: number
  district_id?: number
  category_id?: number | string
  sort_as?: 'asc' | 'desc'
  sort_by?: string
  startDate?: string
  endDate?: string
  search?: string
  user_id?: number
  account_type?: string
  created_by?: number
}

interface IPaginateLink {
  url: string | null
  label: string
  active: boolean
}

export interface IPaginatedData<TData = any> {
  current_page: number
  data: TData
  first_page_url: string
  from: number
  last_page: number
  last_page_url: string
  links: IPaginateLink[]
  next_page_url: string | null
  path: string
  per_page: number
  prev_page_url: string | null
  to: number
  total: number
}
