import { Lang } from "@/constants/languages"
import type { AllRequestResponse } from "../utils/all"
import type { Edges } from "../utils/edges"
import type { System } from "../system"

interface AccountPageBreadcrumbs {
  breadcrumbs: {
    title: string
    parentsConnection: Edges<{
      breadcrumbs: {
        title: string
      }
      system: {
        locale: Lang
        uid: string
      }
      url: string
    }>
  }
  system: {
    uid: string
  }
}

interface AllAccountPageResponse
  extends AllRequestResponse<AccountPageBreadcrumbs> {}

export interface GetMyPagesBreadcrumbsData {
  all_account_page: AllAccountPageResponse
}

interface AccountPageBreadcrumbRefs extends System {
  breadcrumbs: {
    parentsConnection: Edges<System>
  }
}

interface AllAccountPageRefsResponse
  extends AllRequestResponse<AccountPageBreadcrumbRefs> { }

export interface GetMyPagesBreadcrumbsRefsData {
  all_account_page: AllAccountPageRefsResponse
}
