import { TBusinessSubtype, TBusinessType, TCompany } from "./Company";
import { TImageUrls } from "./Image";
import { TSEO } from "./Seo";

export interface TContact {
    name: string;
    link: string;
    image: string;
    urls: TImageUrls;
    image_preview: string;
    alt_text: string | null;
}

export interface TSectionMainData {
    title: string;
    subtitle: string;
    contacts: TContact[];
    image: number;
    urls: TImageUrls;
    image_preview: string;
    alt_text: string;
}

export interface TSectionMapData {
    title: string;
    subtitle: string;
}

export type TContentType = TMap | TContent | TTagLine;

export interface TContent {
    type: "section_main";
    data: TSectionMainData;
}

export interface TMap {
    type: "section_map";
    data: TSectionMapData;
}

export interface TTagLine {
    type: "section_tag_line";
    data: TTagLineData;
}

export interface TContactData {
    id: number;
    name: string;
    slug: string;
    content: TContentType[];
    companies: TCompany[];
    seo: TSEO;
    bgp_data: TCompany;
}

export interface TTagLineData {
    title: string;
    image: number;
    urls: TImageUrls;
    image_preview: string;
    alt_text: string | null;
    business_types: TBusinessType[];
}
