import { navigationQueryRouter } from "@/server/routers/contentstack/myPages/navigation/query"

import { FriendsMembership } from "@/utils/user"

import type { User } from "@/types/user"
import type { LoyaltyLevel } from "@/server/routers/contentstack/loyaltyLevel/output"

type MyPagesNavigation = Awaited<
  ReturnType<(typeof navigationQueryRouter)["get"]>
>

export interface MyPagesMenuProps {
  navigation: MyPagesNavigation
  user: Pick<User, "firstName" | "lastName">
  membership?: FriendsMembership | null
  membershipLevel: LoyaltyLevel | null
}

export interface MyPagesMenuContentProps extends MyPagesMenuProps {
  toggleOpenStateFn: () => void
}
