// lib/types/page.ts
export interface PageBanner {
  ctaLink: string;
  ctaText: string;
  heading: string;
  mobileImage: string;
  desktopImage: string;
  welcome_text?: string;
  territory_name: string;
}

export interface PageAboutUs {
  bgimage: string | null;
  heading: string | null;
  description: string | null;
}

export interface PageProgram {
  bgimage: string | null;
  heading: string | null;
  description: string | null;
}

export interface PageOwnerMsg {
  bgimage: string | null;
  heading: string | null;
  description: string | null;
}

export interface PageContent {
  banner: PageBanner;
  aboutus: PageAboutUs;
  program: PageProgram;
  ownermsg: PageOwnerMsg;
}

export interface PageData {
  page_id: string;
  franchisee_id: string;
  title: string;
  is_global: boolean;
  slug: string;
  seo_title: string;
  seo_description: string | null;
  template: {
    id: string;
    name: string;
    slug: string;
  };
  status: string;
  content: PageContent;
}

export interface PageResponse {
  status: boolean;
  message: string;
  data: PageData;
}