import { z } from "zod"

import { blocksSchema } from "@/server/routers/contentstack/accountPage/output"

import { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"

export interface AccountPageContentProps
  extends Pick<DynamicContent, "dynamic_content"> {}

export interface AccountPageComponentProps {
  title: string | null
  subtitle: string | null
  link?: { href: string; text: string }
}

type Content = z.output<typeof blocksSchema>

export type ContentProps = {
  content: Content[]
}
