import type { Lang } from "@/constants/languages"
import type { UserQueryRouter } from "../user"

export type PreviousStaysResponse = Awaited<
  ReturnType<UserQueryRouter["stays"]["previous"]>
>
export type PreviousStaysNonNullResponseObject =
  NonNullable<PreviousStaysResponse>
export type PreviousStays = NonNullable<PreviousStaysNonNullResponseObject>["data"]
export type PreviousStay = NonNullable<PreviousStaysNonNullResponseObject>["data"][number]

export interface PreviousStaysClientProps {
  lang: Lang
  initialPreviousStays: PreviousStaysNonNullResponseObject
}
