import { TImage, TImageUrls } from "./Image";
import { TSEO } from "./Seo";

export interface TPage {
    id: number;
    name: string;
    slug: string;
    content: TContentItem[];
    seo: TSEO;
}

type TContentItem = TMainBannerSection | TContentSection;

export interface TMainBannerSection {
    type: "section_main_banner";
    data: TMainBanner;
}

export interface TContentSection {
    type: "section_company";
    data: TContentData;
}

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

export interface TBusinessSubType {
    id: number;
    name: string;
    slug: string;
    business_type_id: number;
    created_at: string;
    updated_at: string;
}

export interface TBusinessType {
    id: number;
    order: number;
    name: string;
    slug: string;
    description: string;
    created_at: string;
    updated_at: string;
    business_subtypes: TBusinessSubType[] | null;
}

export interface TContentData {}
