36 lines
827 B
TypeScript
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;
|
|
}
|