import { TArticle, TPressRelease } from "./Article";
import { TProfileBOD } from "./BOD";
import { TJob } from "./Career";
import { TCompany } from "./Company";
import { TImageUrls } from "./Image";
import { TSEO } from "./Seo";

export interface TPage {
    news: TArticle[];
    companies: TCompany[];
    bods: TProfileBOD[];
    careers: TJob[];
    search_query: string;
    id: number;
    name: string;
    slug: string;
    content: TContent[];
    seo: TSEO;
    base_url: string;
}

export interface ImageUrl {
    url: string;
    width: number;
    height: number;
}

export interface TSectionMainBannerData {
    title: string;
    image: string;
    urls: TImageUrls;
    image_preview: string;
    alt_text: string | null;
}

export interface TSectionContentData {
    title: string;
    search_placeholder: string;
    not_found_title: string;
}

export type TContent =
    | {
          type: "section_main_banner";
          data: TSectionMainBannerData;
      }
    | {
          type: "section_content";
          data: TSectionContentData;
      };
