import {
  Block,
  CardsGrid,
  DynamicContent,
  RteBlockContent,
} from "@/server/routers/contentstack/loyaltyPage/output"

export type BlocksProps = {
  blocks: Block[]
}

export type DynamicContentProps = {
  dynamicContent: DynamicContent["dynamic_content"]
}

export type DynamicComponentProps = {
  component: DynamicContent["dynamic_content"]["component"]
}

export type CardsGridProps = Pick<CardsGrid, "cards_grid">

export type Content = { content: RteBlockContent["content"]["content"] }

type Benefit = { title: string; description: string }

export type Level = {
  tier: number
  name: string
  requiredPoints: number
  requiredNights?: number
  logo: string
  benefits: Benefit[]
}

export type LevelCardProps = {
  level: {
    tier: number
    name: string
    requiredPoints: number
    requiredNights?: number
    benefits: Benefit[]
    logo: string
  }
}
