convexsol_stage/interfaces/header.interface.ts
2025-12-02 11:02:00 +05:30

36 lines
827 B
TypeScript

interface LogoImageDataInterface {
data: { attributes: { url: string; alternativeText: string; width?: number; height?: number; ext: string } };
}
export interface HeaderAPIDataInterface {
logo: LogoImageDataInterface;
cta: string;
advtCta: string;
advtTitle: string;
media: LogoImageDataInterface;
navItems: HeaderDataInterface[];
emails: {
contact: string;
}[];
phoneNumbers: {
contactNumber: string;
flag: LogoImageDataInterface;
}[];
}
export type TChildItem = {
label: string;
href: string;
logo?: string;
description?: string;
childItem?: TChildItem[] | undefined;
};
export interface HeaderDataInterface {
label: string;
href: string;
logo?: string;
childItem?: TChildItem[] | undefined;
dataName?: string;
}