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

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

export type TContentItem = TAchievementSection;

export interface TAchievementSection {
    type: "section_achievement";
    data: TAchievementData;
}

export interface TAchievementData {
    title: string;
    subtitle: string;
    achievement_title: string;
    achievement_subtitle: string;
    inspiring_media_title: string;
    image: number;
    achievements: TAchievement[];
    urls: TImageUrls;
    image_preview: string;
    alt_text: string | null;
}

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