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

export interface TSingleBannerData {
    image: string;
    title?: string;
    subtitle?: string;
    urls: TImageUrls;
    image_preview: string;
    alt_text: string | null;
}

export interface TBusinessType {
    type: string;
    details: string;
}

export interface TSectionBodyData {
    top: string;
    business_types: TBusinessType[];
    bottom: string;
}

export type TContent =
    | {
          type: "section_title";
          data: TSingleBannerData;
      }
    | {
          type: "section_body";
          data: TSectionBodyData;
      };

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